Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136713 鄢晨曦 12满足条件的四位数 C++ Compile Error 0 MS 0 KB 262 2025-11-15 15:03:42

Tests(0/0):


Code:

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


Run Info:

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