結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-30 21:38:19 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 276µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 1,286 ms |
| コンパイル使用メモリ | 211,316 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-10-11 21:28:49 |
| 合計ジャッジ時間 | 2,447 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
bool lzero(string s) {
return s.size() > 1 && s[0] == '0';
}
bool isnum(string s) {
for (char c : s) if (c < '0' || '9' < c) return false;
return true;
}
int main() {
string a, b;
cin>>a>>b;
if (lzero(a)||lzero(b)||!isnum(a)||!isnum(b)||stoi(a)>12345||stoi(b)>12345) puts("NG");
else puts("OK");
return 0;
}