結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-09-05 10:18:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 993 ms |
| コンパイル使用メモリ | 177,552 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-07 04:27:04 |
| 合計ジャッジ時間 | 1,831 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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