Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

5172MS竟然也AC!!

Posted by SEI069049 at 2010-06-08 16:16:35 on Problem 2602
说明几点:
    第一,采用JAVA,输入采用BufferedReader,先读入N,然后循环N次,每次调用BufferedReader的read(char[] cbuf, int pos, int len),最后得到两个char数组。
    第二,循环上面得到的两个char数组,从个位开始加,一直到最高位,结果存储到一个新的char数组里面,然后直接输出这个char数组,采用System.out.println(char[] c)调用。
    先前采用Scanner是怎么也过不了,一时RE,一时TLE,并且即使采用BufferedReader进行输入,输出如果以一个字符一个字符的方式,也是过不了的。本以为过不了的,结果在长达5172MS的情况下竟然也AC,只能慨叹自己运气不错。呵呵。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator