結果
| 問題 | No.2239 Friday |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-11 13:10:00 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 32 ms / 2,000 ms |
| + 713µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 64,860 KB |
| 実行使用メモリ | 53,972 KB |
| 最終ジャッジ日時 | 2026-10-15 14:36:08 |
| 合計ジャッジ時間 | 2,272 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
import math a,b=map(int,input().split()) x1=min(a,b) x2=(a+b)//4 x3=math.ceil((a+b)/4) def calc(x): return abs(a+b-4*x) ans=calc(x1) if x1>=x2: ans=min(ans,calc(x2)) if x1>=x3: ans=min(ans,calc(x3)) print(ans)