Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cpp to add
- using namespace std;
- int TL;
- inline void TLE () {
- if (TL <= clock() * 1000 / CLOCKS_PER_SEC)
- exit(1);
- }
- int main (int argc, char *argv[]) {
- TL = atoi(argv[1]);
- if (TLE()) {
- exit (1);
- }
- exit (0);
- }
- bat to add
- del res.txt
- set filename=D.
- echo off
- for %%i in (??) do (
- Copy %%i %filename%in
- echo test %%i
- a 300
- if errorlevel 1 (
- echo TL or RE
- echo TL or RE >> res.txt
- ) else (
- fcmp %filename%in %filename%out %%i.a
- fcmp %filename%in %filename%out %%i.a >> res.txt
- )
- del %filename%in
- del %filename%out
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement