Search found 1 match

by letrunghieu
Wed Aug 27, 2014 2:03 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 14614

Why time limit?

#include <iostream> #include <string> #include <fstream> using namespace std; int main() { string s; ifstream InFile("INPUT.inp"); //InFile.open("INPUT.inp",ios::in); while(1) { if(InFile.eof()) { //InFile.close(); return 0; } getline(InFile, s); int len = s.length(); for(int i = 0;i<len;i++) cout ...

Go to advanced search