Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
3917 | A班-过懿萱 | 不吉利的数字 | C++ | 解答错误 | 12 | 0 MS | 260 KB | 319 | 2025-01-04 12:02:45 |
#include <bits/stdc++.h> using namespace std; int main() { int n,flag; cin>>n; int m = n; while(n != 0) { int temp = n % 10; if(temp == 4) { flag = 0; break; } n /= 10; } if(flag == 0 || m % 13 == 0) { cout<<"NO"<<endl; } else { cout<<"OK"<<endl; } return 0; }