結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-28 13:44:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 56,700 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 18:24:00 |
| 合計ジャッジ時間 | 1,190 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
bool f(string s){
for(int i=0;i<=12345;i++){
if(to_string(i)==s)return true;
}
return false;
}
int main(){
string a,b;
cin >> a >> b;
cout << (f(a)&&f(b)?"OK":"NG") << endl;
return 0;
}
xuelei