Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
32675 | 林芳菲 | 【J】2023 | C++ | 运行出错 | 0 | 0 MS | 260 KB | 544 | 2024-09-25 21:29:08 |
#include <cstdio> #include <iostream> #include <algorithm> using namespace std; int main() { freopen("2023.in", "r", stdin); freopen("2023.out", "w", stdout); int t; cin >> t; while (t--) { string s; cin >> s; int ans = 0; for (int i = 0; i < s.size(); i++) ans = (ans * 10 + s[i] - '0') % 2023; if (ans == 0) cout << "Yes" << endl; else cout << "No" << endl; } fclose(stdin); fclose(stdout); return 0; }