[Login|Register]
New post

Show post

Search forum

Read post
这代码能得到正确结果啊,怎么老是Time Limit Exceeded... [ Topic ] 2012-01-19 20:49:57 bboybhappy
#include <iostream>
using namespace std;
int main(){
    char a='a';
    while(!cin.eof()){
        while(a != '\n'&&cin.get(a))
            cout<<a;
        a='a';
    }
    return 0;
}
Reply
Title
Message
(64K)
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.9ms with 2 query(s).