Submission #00020


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <bits/stdc++.h>
using namespace std;
int main()
{
string number,year;
int len,numb;
int x;
while(1){
cin >> year;
if(year == "-1") break;
len = year.length();
number = "";
if(year[len-1] == 'A'){
number = year;
numb = atoi(number.c_str());
numb += 2019;
cout << number << endl;
cout << numb << endl;
} else {
numb = atoi(year.c_str());
cout << numb - 2019 << "_WA" << endl;
}
}
return 0;
}

ステータス

項目 データ
問題 0002 - 令和
ユーザー名 ei1827
投稿日時 2019-04-08 15:55:57
言語 C++17
状態 Wrong Answer
得点 0
ソースコード長 506 Byte
最大実行時間 1000 ms
最大メモリ使用量 10428 KB

セット

セット 得点 Cases
1 ALL 0 / 2 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01 WA 90 ms 732 KB
1
in02 WA 101 ms 960 KB
1
in03 WA 133 ms 1316 KB
1
in04 WA 47 ms 1420 KB
1
in05 WA 186 ms 2024 KB
1
in06 WA 54 ms 2000 KB
1
in07 WA 74 ms 2356 KB
1
in08 WA 32 ms 2328 KB
1
in09 WA 23 ms 2432 KB
1
in10 WA 24 ms 2404 KB
1
in11 WA 130 ms 2760 KB
1
in12 WA 55 ms 2852 KB
1
in13 WA 71 ms 3076 KB
1
in14 WA 108 ms 3436 KB
1
in15 WA 165 ms 3788 KB
1
in16 TLE 1000 ms 7856 KB
1
in17 WA 113 ms 8208 KB
1
in18 WA 335 ms 9332 KB
1
in19 WA 36 ms 9428 KB
1
in20 WA 285 ms 10428 KB
1