Submission #165273

#TimeUsernameProblemLanguageResultExecution timeMemory
165273itiamKošnja (COCI17_kosnja)Cpython 3
Compilation error
0 ms0 KiB
#include <iostream> #include <sstream> #include <string> using namespace std; int main(){ int N,X,Y,Z,br; cin >> N; string k=""; for (int i=0;i<N;i++){ if (i!=0) k+="\n"; br=0; cin >> X >> Y; if (Y<X) Z=Y; else Z=X; br=(Z*2)-2; stringstream ss; ss << br; string str = ss.str(); k+=str; //cout << "k: " << k; } cout << k; return 0; }

Compilation message (stderr)

File "kosnja.py", line 5
    using namespace std;
                  ^
SyntaxError: invalid syntax