結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
ngtkana
|
| 提出日時 | 2020-03-01 01:16:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 336 bytes |
| コンパイル時間 | 1,557 ms |
| コンパイル使用メモリ | 166,392 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 20:24:47 |
| 合計ジャッジ時間 | 2,419 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
void err(){std::cout<<"NG"<<std::endl;exit(0);}
int main(){
for(int i=0;i<2;i++){
std::string s;std::cin>>s;
if(1u<s.length()&&s.front()=='0')err();
for(char c:s)if(!std::isdigit(c))err();
int n=std::stoi(s);
if(12345<n)err();
}
std::cout<<"OK"<<std::endl;
}
ngtkana