結果
問題 |
No.126 2基のエレベータ
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:31:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 82,460 KB |
実行使用メモリ | 54,368 KB |
最終ジャッジ日時 | 2025-06-12 19:31:59 |
合計ジャッジ時間 | 2,673 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 10 |
ソースコード
A, B, S = map(int, input().split()) option1 = abs(A - S) + S if S == 1: print(option1) else: option2 = abs(B - S) + abs(S - A) + A print(min(option1, option2))