Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
55915 | 该账号已封禁 | 旺财吃玉米 | C++ | Accepted | 0 MS | 244 KB | 252 | 2024-11-08 16:06:24 |
#include<iostream> using namespace std; int main() { int s,y; s=0; y=0; for (int i=1;1<=5;i++){ cin>>y; s+=y; if (s>=500){ break; } } cout<<s; return 0; }