Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140352 岑思烁 15相同数的次数 C++ Compile Error 0 MS 0 KB 6996 2025-12-14 11:22:24

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }


Run Info:

Main.cc:16:2: error: stray '#' in program
 }#include
  ^
Main.cc:31:2: error: stray '#' in program
 }#include
  ^
Main.cc:46:2: error: stray '#' in program
 }#include
  ^
Main.cc:61:2: error: stray '#' in program
 }#include
  ^
Main.cc:76:2: error: stray '#' in program
 }#include
  ^
Main.cc:91:2: error: stray '#' in program
 }#include
  ^
Main.cc:106:2: error: stray '#' in program
 }#include
  ^
Main.cc:121:2: error: stray '#' in program
 }#include
  ^
Main.cc:136:2: error: stray '#' in program
 }#include
  ^
Main.cc:151:2: error: stray '#' in program
 }#include
  ^
Main.cc:166:2: error: stray '#' in program
 }#include
  ^
Main.cc:181:2: error: stray '#' in program
 }#include
  ^
Main.cc:196:2: error: stray '#' in program
 }#include
  ^
Main.cc:211:2: error: stray '#' in program
 }#include
  ^
Main.cc:226:2: error: stray '#' in program
 }#include
  ^
Main.cc:241:2: error: stray '#' in program
 }#include
  ^
Main.cc:256:2: error: stray '#' in program
 }#include
  ^
Main.cc:271:2: error: stray '#' in program
 }#include
  ^
Main.cc:286:2: error: stray '#' in program
 }#include
  ^
Main.cc:301:2: error: stray '#' in program
 }#include
  ^
Main.cc:316:2: error: stray '#' in program
 }#include
  ^
Main.cc:331:2: error: stray '#' in program
 }#include
  ^
Main.cc:346:2: error: stray '#' in program
 }#include
  ^
Main.cc:361:2: error: stray '#' in program
 }#include
  ^
Main.cc:376:2: error: stray '#' in program
 }#include
  ^
Main.cc:391:2: error: stray '#' in program
 }#include
  ^
Main.cc:406:2: error: stray '#' in program
 }#include
  ^
Main.cc:421:2: error: stray '#' in program
 }#include
  ^
Main.cc:436:2: error: stray '#' in program
 }#include
  ^
Main.cc:451:2: error: stray '#' in program
 }#include
  ^
Main.cc:466:2: error: stray '#' in program
 }#include
  ^
Main.cc:481:2: error: stray '#' in program
 }#include
  ^
Main.cc:16:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:18:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:31:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:33:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:46:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:48:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:61:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:63:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:76:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:78:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:91:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:93:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:106:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:108:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:121:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:123:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:136:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:138:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:151:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:153:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:166:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:168:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:181:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:183:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:196:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:198:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:211:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:213:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:226:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:228:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:241:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:243:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:256:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:258:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:271:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:273:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:286:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:288:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:301:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:303:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:316:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:318:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:331:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:333:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:346:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:348:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:361:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:363:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:376:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:378:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:391:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:393:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:406:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:408:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:421:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:423:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:436:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:438:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:451:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:453:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:466:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:468:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:481:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:483:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^