結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| コンテスト | |
| ユーザー |
ikd
|
| 提出日時 | 2016-11-19 00:32:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 275 bytes |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 56,412 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 10:01:14 |
| 合計ジャッジ時間 | 1,017 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include<iostream>
using namespace std;
bool f(string s){
int n=0;
while(n<=12345){
if(to_string(n)==s) return true;
n++;
}
return false;
}
int main(){
string A, B;
cin>> A>> B;
cout<< (f(A)&&f(B)? "OK": "NG")<< endl;
return 0;
}
ikd