I ran this submission in Python 3 and got a runtime error on Test 2. When I run this code with the same inputs everything is fine, no error is displayed.
!/usr/bin/python h = input() if ((h)*(h+1)/2)%2==0: print("0") else: print("1") here is the link to the problemhttps://codeforces.com/contest/1102/problem/A & here is the link to my submissionhttps://codeforces.com/contest/1102/submission/48184489 pls tell me my mistake...
I'm new to C++, I used Python before and didn't have to worry about using ints or longs lol. → Reply » dream7 17 months ago, # | 0 Why my solution gives TLE on problem E. → Reply » » Java 17 months ago, # ^ | +1 Looks like you’re unnecessarily memset...
System.out.flush() in Java; stdout.flush() in Python; flush(output) in Pascal; See the documentation for other languages. In any moment if the program reads h = 0 or k = 0 it should immediately terminate normally (for example, calling exit(0)). It means that the system det...
Codeforces helper using Python3. Contribute to AlessandroChen/Codeforces development by creating an account on GitHub.
This is an interactive problem. Remember to flush your output while communicating with the testing program.You may usefflush(stdout)in C++,system.out.flush()in Java,stdout.flush()in Python orflush(output)in Pascal to flush the output. If you use some other programming language, consult its ...
This is an interactive problem. Remember to flush your output while communicating with the testing program. You may usefflush(stdout) in C++,system.out.flush() in Java,stdout.flush() in Python orflush(output) in Pascal to flush the output. If you use some other programming language, consult...
I will try to remove the dependency of online-judge-tools for non-python users in future updates While running C or C++ files, it sometimes run the previously compiled file and shows the same verdict. Incase of that delete the previously compiled file and run the code again Not tested for...
函数input()的意思是从输入缓冲区流中获取一行,我认为你应该在相应的位置修改你的代码。
函数input()的意思是从输入缓冲区流中获取一行,我认为你应该在相应的位置修改你的代码。