1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <iostream> #include <string> using namespace std; int main() { int i = 1; string token; while(cin >> token) { cout << i << ": " << token << '\n'; i++; } } |
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgaW50IGkgPSAxOwogICAgc3RyaW5nIHRva2VuOwoKICAgIHdoaWxlKGNpbiA+PiB0b2tlbikKICAgIHsKICAgICAgICBjb3V0IDw8IGkgPDwgIjogIiA8PCB0b2tlbiA8PCAnXG4nOwogICAgICAgIGkrKzsKICAgIH0gICAgCn0=
-
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


