| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12442 | 汤依宁 | 数字之和为13的整数 | C++ | Accepted | 100 | 65 MS | 268 KB | 277 | 2025-07-13 08:38:06 |
#include<bits/stdc++.h> using namespace std; int max(int d) { int a,g,sum=0; for(int i=1; i<=d; i++) { a=i; g=0; while(a) { g+=a%10; a/=10; } if(g==13) { sum++; } } return sum; } int main() { int a,c,h=0; cin>>c; cout<<max(c); }