結果
問題 | No.965 門松列が嫌い |
ユーザー | 双六 |
提出日時 | 2020-08-04 03:18:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 338 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 87,236 KB |
実行使用メモリ | 71,920 KB |
最終ジャッジ日時 | 2023-10-11 22:11:55 |
合計ジャッジ時間 | 2,528 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 96 ms
71,648 KB |
testcase_01 | AC | 98 ms
71,652 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 98 ms
71,500 KB |
testcase_05 | WA | - |
testcase_06 | AC | 96 ms
71,320 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 98 ms
71,356 KB |
ソースコード
import sys; input = sys.stdin.buffer.readline sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") def getlist(): return list(map(int, input().split())) #処理内容 def main(): A, B, C = getlist() ans = min(B - A, B - C, abs(A - C)) print(ans) if __name__ == '__main__': main()