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