結果
| 問題 | No.965 門松列が嫌い |
| コンテスト | |
| ユーザー |
futago0118
|
| 提出日時 | 2020-05-28 09:45:28 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 1,000 ms |
| + 380µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-15 08:57:47 |
| 合計ジャッジ時間 | 1,344 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
A,B,C = map(int,input().split())
number = [A,B,C]
cnt = cnt2 = 0
cnt = abs(A-C)
b = B
number = sorted(number)
if number[1] != b:
cnt2 = min(abs(number[0]-number[1]),abs(number[1]-number[2]))
print(min(cnt,cnt2))
futago0118