[Login|Register]
New post

Show post

Search forum

Read post
Re:Did the format of output confuse you? [ Topic ] 2010-10-11 01:12:09 zsonglin
#include <iostream>

using namespace std;
int main()
{
for(char c;c!=EOF;)    
{
   if((c=cin.get())!='\n')
      cout.put(c);
   else
      cout<<endl;
}
    
}
说我运行超过时间了,唉。。。
Reply
Title
Message
(64K)
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.5ms with 2 query(s).