Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
3918 A班-过懿萱 不吉利的数字 C++ 解答错误 0 1 MS 260 KB 318 2025-01-04 12:03:25

Tests(0/8):


#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; }


测评信息: