1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <iostream> #include <string> using namespace std; int main() { int i = 1; string token; while(!cin.eof()) { cin >> token; cout << i << ": " << token << '\n'; i++; } } |
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgaW50IGkgPSAxOwogICAgc3RyaW5nIHRva2VuOwoKICAgIHdoaWxlKCFjaW4uZW9mKCkpCiAgICB7CiAgICAgICAgY2luID4+IHRva2VuOwogICAgICAgIGNvdXQgPDwgaSA8PCAiOiAiIDw8IHRva2VuIDw8ICdcbic7CiAgICAgICAgaSsrOwogICAgfSAgICAKfQ==
-
upload with new input
-
result: Success time: 0s memory: 3020 kB returned value: 0
one two three four
1: one 2: two 3: three 4: four 5: four


