| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138510 | 向俊麒 | 求序列的前n项和 | C++ | Wrong Answer | 0 MS | 272 KB | 500 | 2025-11-25 19:06:01 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int g,s,b,q,n,a,m=0; cin>>a; for(int i=1;i<=a;i++){ cin>>n; g=n%10; s=n%100/10; b=n%1000/100; q=n/1000; if(g-s-b-q>0){ m++; } }cout<<m; return 0; }
------Input------
3
------Answer-----
5.16667
------Your output-----
0