| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 87274 | 张曦 | 13判断质数 | C++ | Wrong Answer | 1 MS | 272 KB | 350 | 2024-08-08 09:45:20 |
#include <iostream> using namespace std; int main() { int y; cin >> y; while(y++) { int p = y; int s = 0; while(p) { s += p % 10; p /= 10; } if(s == 20) { cout << y; break; } } return 0; }
------Input------
157
------Answer-----
Yes
------Your output-----
299