結果
| 問題 | No.2239 Friday |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-11 13:10:00 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 65 ms / 2,000 ms |
| + 870µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2026-08-30 01:33:47 |
| 合計ジャッジ時間 | 2,964 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
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)