| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 4521 | ElaineTang | 是否含有数字5 | C++ | Accepted | 100 | 0 MS | 268 KB | 279 | 2025-01-12 16:19:42 |
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d,e,f; cin>>a; b=a/10000; c=a%10000/1000; d=a%10000%1000/100; e=a%10000%1000%100/10; f=a%10; if(b==5 || c==5 || d==5 || e==5 || f==5) { cout<<b+c+d+e+f; } else { cout<<a; } }