[Login|Register]
New post

Show post

Search forum

Read topic
Did the format of output confuse you? 2010-10-10 17:19:49 mrhead
Sample format is:
The quick brown fox jumps over the lazy dog.
question = to ? be : !be;
The quick brown fox jumps over the lazy dog.
question = to ? be : !be;


In fact,i got result below:
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
question = to ? be : !be;
question = to ? be : !be;

AND the program was accepted, do you have the same doubt with me?Some one can help me figure this out?
Re:Did the format of output confuse you? 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.8ms with 1 query(s).