Submission #00130


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<bits/stdc++.h>
using namespace std;
using vecint = vector<int>;
using vec2int = vector<vector<int>>;
using vecstr = vector<string>;
using vecll = vector<long long>;
using vec2ll = vector<vector<long long>>;
#define ll long long
#define ull unsigned long long
#define rin(a) for(auto& b : a) cin >> b
#define so(a) stable_sort(a.begin(),a.end())
#define sor(a) stable_sort(a.begin(),a.end(),greater<int>())
#define show(a) for(auto& b : a) cout << b ; cout << endl
#define NOFIND string::npos
#define INF 1e18
main(){
int x, y;
cin >> x >> y;
if(x == y) cout << x + 1 << endl;
else cout << (y+1) + (x-1) -1 << endl;
return(0);
}

ステータス

項目 データ
問題 0005 - 電線
ユーザー名 ei2222
投稿日時 2023-07-31 11:39:46
言語 C++17
状態 Wrong Answer
得点 0
ソースコード長 680 Byte
最大実行時間 30 ms
最大メモリ使用量 612 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 26 ms 600 KB
1
in2.txt AC 19 ms 428 KB
1
in3.txt WA 23 ms 612 KB
1
in4.txt WA 27 ms 584 KB
1
in5.txt AC 18 ms 560 KB
1
in6.txt WA 15 ms 528 KB
1
in7.txt WA 19 ms 496 KB
1
in8.txt AC 16 ms 596 KB
1
in9.txt WA 18 ms 568 KB
1
in10.txt WA 19 ms 568 KB
1
in11.txt WA 23 ms 544 KB
1
in12.txt WA 20 ms 512 KB
1
in13.txt WA 20 ms 488 KB
1
in14.txt WA 19 ms 456 KB
1
in15.txt AC 30 ms 432 KB
1
in16.txt WA 22 ms 532 KB
1
in17.txt AC 18 ms 376 KB
1
in18.txt AC 20 ms 352 KB
1
in19.txt WA 23 ms 580 KB
1
in20.txt WA 20 ms 528 KB
1
in21.txt WA 22 ms 368 KB
1
in22.txt WA 20 ms 468 KB
1
in23.txt WA 20 ms 440 KB
1
in24.txt WA 24 ms 408 KB
1
in25.txt AC 18 ms 512 KB
1