| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 439019 | 方相宜 | 26年4月-A组(萌新)A. 产品检查 | C++ | 通过 | 100 | 1 MS | 260 KB | 564 | 2026-05-04 11:56:29 |
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int pre = (s[0] - '0') * 10 + (s[1] - '0'); int suf = (s[2] - '0') * 10 + (s[3] - '0'); bool A = (suf >= 1 && suf <= 12); bool B = (pre >= 1 && pre <= 12); if(A && B) cout << "AMBIGUOUS" << endl; else if(A) cout << "YYMM" << endl; else if(B) cout << "MMYY" << endl; else cout << "NA" << endl; return 0; }