Submission #00058


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define inf 1001001001
template<class T> bool chmax(T &a, const T &b) { if(a < b) {a = b; return true;} return false; }
template<class T> bool chmin(T &a, const T &b) { if(b < a) {a = b; return true;} return false; }
//================================================================================================
int main(){
int x, y;
cin >> x >> y;
cout << abs(x - y) << endl;
return(0);
}

ステータス

項目 データ
問題 0003 - 赤とんぼ
ユーザー名 ei2212
投稿日時 2024-04-26 16:03:28
言語 C++17
状態 Accepted
得点 5
ソースコード長 481 Byte
最大実行時間 27 ms
最大メモリ使用量 696 KB

セット

セット 得点 Cases
1 ALL 5 / 5 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 16 ms 472 KB
1
in2.txt AC 16 ms 548 KB
1
in3.txt AC 18 ms 524 KB
1
in4.txt AC 21 ms 628 KB
1
in5.txt AC 27 ms 596 KB
1
in6.txt AC 26 ms 696 KB
1
in7.txt AC 23 ms 664 KB
1
in8.txt AC 19 ms 508 KB
1
in9.txt AC 25 ms 484 KB
1
in10.txt AC 23 ms 448 KB
1