| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 89545 | sh25_zhangyj | 分成整数 | C++ | Accepted | 141 MS | 256 KB | 1044 | 2026-06-05 14:34:36 |
#include<bits/stdc++.h> using namespace std; int main() { int N, ans = 0; cin >> N; for (int i = 1; i <= N; i++) { int t = i; bool ok = true; while(t) { if(t % 10 == 3 || t % 10 == 7) ok = false; t /= 10; } if(!ok) continue; for (int j = i + 1; j <= N; j++) { int t = j; bool ok = true; while(t) { if(t % 10 == 3 || t % 10 == 7) ok = false; t /= 10; } if(!ok) continue; for (int k = j + 1; k <= N; k++) { int t = k; bool ok = true; while(t) { if(t % 10 == 3 || t % 10 == 7) ok = false; t /= 10; } if(!ok) continue; if(k == 3 || k == 7) continue; if(i + j + k != N) continue; //cout << i <<" "<<j <<" " <<" "<<k <<endl; ans++; } } } cout << ans; return 0; }