1 $BEGINCUT$ 2 $PROBLEMDESC$ 3 $ENDCUT$ 4 #include<bits/stdc++.h> 5 using namespace std; 6 typedef long long LL; 7 typedef pair<int,int> pii; 8 9 template<class T> inline 10 void read(T& num) 11 { 12 bool start=false,neg=false; 13 char c; 14 num=0; 15 while((c=getchar())!=EOF) 16 { 17 if(c==‘-‘)start=neg=true; 18 else if(c>=‘0‘&&c<=‘9‘) 19 { 20 start=true; 21 num=num*10+c-‘0‘; 22 }else if(start)break; 23 } 24 if(neg)num=-num; 25 } 26 /*============ Header Template ============*/ 27 28 class $CLASSNAME$ 29 { 30 public: 31 $RC$ $METHODNAME$($METHODPARMS$) 32 { 33 //$CARETPOSITION$ 34 } 35 $TESTCODE$ 36 }; 37 38 // BEGIN CUT HERE 39 int main() 40 { 41 $CLASSNAME$ ___test; 42 ___test.run_test(-1); 43 system("pause"); 44 } 45 // END CUT HERE
时间: 2024-10-19 00:13:51