| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 439018 | 方相宜 | 26年4月-A组(萌新)A. 产品检查 | Python3 | 编译错误 | 0 | 0 MS | 0 KB | 498 | 2026-05-04 11:55:49 |
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int a = stoi(s.substr(0,2)); int b = stoi(s.substr(2,2)); bool okA = (b >= 1 && b <= 12); bool okB = (a >= 1 && a <= 12); if(okA && okB) cout << "AMBIGUOUS"; else if(okA) cout << "YYMM"; else if(okB) cout << "MMYY"; else cout << "NA"; return 0; }