Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.58 KB | None | 0 0
  1. cpp to add
  2. using namespace std;
  3. int TL;
  4. inline void TLE () {
  5.     if (TL <= clock() * 1000 / CLOCKS_PER_SEC)
  6.         exit(1);       
  7. }
  8. int main (int argc, char *argv[]) {
  9.     TL = atoi(argv[1]);
  10.     if (TLE()) {
  11.         exit (1);
  12.     }
  13.     exit (0);
  14. }
  15.  
  16. bat to add
  17. del res.txt
  18. set filename=D.
  19. echo off
  20. for %%i in (??) do (
  21.     Copy %%i %filename%in
  22.     echo test %%i
  23.     a 300
  24.     if errorlevel 1 (
  25.         echo TL or RE
  26.         echo TL or RE >> res.txt
  27.     ) else (    
  28.         fcmp %filename%in %filename%out %%i.a
  29.         fcmp %filename%in %filename%out %%i.a >> res.txt
  30.     )
  31.     del %filename%in
  32.     del %filename%out
  33. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement