1#include <cstdio>2#include <iostream>3#include <cstdlib>4#include <time.h>5#include <cstring>6#include <windows.h>7 using namespacestd;8 9 Char inch[ the] ="std00.in";Ten Char out[ the] ="Std00.out"; One Const intL_file =1; A Const intR_file =2; - - void_init ()//the value of each loop is emptied the { - //Clear 0 Here - - return ; + } - + void_in () A { at inch[8] =' /'; - out[9] =' /'; - for(int__i = L_file; __i <= R_file; __i + +) - { - inch[3] = __i/Ten+'0',inch[4] = __i%Ten+'0'; - if(Freopen (inch,"W", stdout) = = NULL) System ("In failed"); in - //Start printing test data here to +System"finished processing an input data"); - } the return ; * } $ Panax Notoginseng void_out () - { the intN, M; + for(int__i = L_file; __i <= R_file; __i + +) A { the _init (); + inch[3] = __i/Ten+'0',inch[4] = __i%Ten+'0'; - if(Freopen (inch,"R", stdin) = = NULL) System ("in2 Failure"); $ $ out[3] = __i/Ten+'0', out[4] = __i%Ten+'0'; - if(Freopen ( out,"W", stdout) = = NULL) System ("Out failed"); - the //Place code here - WuyiSystem"finished processing an output data"); the } - return ; Wu } - About intMain () $ { -Srand ((unsigned) time (0)); - - _in (); A _out (); + the fclose (stdin); - fclose (stdout); $ the return 0; the}
Template for the quiz