Hello.
I have a program that passes some tests and some does not with the error ***Time limit exceeded***.
The problem is that as soon as the program does not pass the time test, the check stops and the rest of the tests do not run.
How do I make the results of all tests displayed?
Thanks
Sample program:
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
if(a == 1){
while(1);
}
else {
cout << a;
}
return 0;
}
Input and output data:
Input: 2
Output:2
Input: 1
Output: ***Time limit exceeded***
Input: 3
Output:3