結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-09-05 10:18:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 337 bytes |
| コンパイル時間 | 1,277 ms |
| コンパイル使用メモリ | 159,832 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-06 22:14:45 |
| 合計ジャッジ時間 | 1,924 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
string a,b;
cin >> a;
cin >> b;
int ai = stoi('0'+a);
int bi = stoi('0'+b);
if (( ai <= 12345 && bi <= 12345 ) && (a == to_string(ai) && b == to_string(bi))) cout << "OK" << endl;
else cout << "NG" << endl;
return 0;
}
teketeke5000