結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
Ronlynes
|
| 提出日時 | 2017-01-24 22:37:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 309 bytes |
| コンパイル時間 | 602 ms |
| コンパイル使用メモリ | 63,104 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 08:03:21 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 2 WA * 11 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
char a, b;
cin >> a;
cin >> b;
if(a >=0 && a <= 12345 && 0 <= b && b <= 12345 && isdigit(static_cast<unsigned char>(b)) && isdigit(static_cast<unsigned char>(a))){
cout << a+b << endl;
}else{
cout << "NG" << endl;
}
return 0;
}
Ronlynes