Submission #64911
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <iostream> #include <algorithm> #include <cassert> #include <vector> using namespace std; signed main(){ cin.tie(nullptr); ios_base::sync_with_stdio( false ); vector<vector<pair< int , int > > > v(5000, vector<pair< int , int > >(5000, {0,0})); sort(v.begin(), v.end()); int x1, x2, x3; cin >> x1 >> x2 >> x3; cout << max({ abs (x1 - x2), abs (x1 - x3), abs (x2 - x3)}) << '\n' ; return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 1341 - Maximum Distance |
ユーザー名 | ei1903 |
投稿日時 | 2020-12-07 17:04:40 |
言語 | C++17 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 470 Byte |
最大実行時間 | 431 ms |
最大メモリ使用量 | 196292 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 100 / 100 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 431 ms | 196188 KB |
1
|
in02.txt | AC | 407 ms | 196052 KB |
1
|
in03.txt | AC | 418 ms | 196044 KB |
1
|
in04.txt | AC | 423 ms | 196292 KB |
1
|
in05.txt | AC | 414 ms | 196152 KB |
1
|
in06.txt | AC | 414 ms | 196012 KB |
1
|
in07.txt | AC | 410 ms | 196132 KB |
1
|
in08.txt | AC | 428 ms | 196120 KB |
1
|
in09.txt | AC | 424 ms | 196108 KB |
1
|
in10.txt | AC | 414 ms | 196096 KB |
1
|
in11.txt | AC | 416 ms | 196092 KB |
1
|
in12.txt | AC | 424 ms | 196084 KB |
1
|
in13.txt | AC | 411 ms | 196076 KB |
1
|
in14.txt | AC | 408 ms | 196064 KB |
1
|
in15.txt | AC | 420 ms | 196060 KB |
1
|
sample01.txt | AC | 410 ms | 196052 KB |
1
|
sample02.txt | AC | 422 ms | 196040 KB |
1
|