Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123880 范恒恺 12满足条件的四位数 C++ Compile Error 0 MS 0 KB 264 2025-07-10 14:31:44

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,g,s,b,q,cnt=0; cin>>m; for(int i=1;i<=n;i++){ cin>>m; g=m/1%10; s=m/10%10; b=m/100%10; q =m/1000%10; if(g-q-b-s>0){ cnt++; } cout<<cnt } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:2: error: expected ';' before '}' token
  }
  ^