結果
問題 | No.2921 Seated in Classroom |
ユーザー |
|
提出日時 | 2024-10-26 16:44:44 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 320 ms |
コンパイル使用メモリ | 82,588 KB |
実行使用メモリ | 78,600 KB |
最終ジャッジ日時 | 2024-10-26 16:44:49 |
合計ジャッジ時間 | 4,945 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 5 |
ソースコード
import mathfor _ in [0]*int(input()):n, m = map(int, input().split(" "))t_ans, mod = math.ceil(n/4), n%4m -= modm_ans = math.ceil(m/4)if m_ans > t_ans:t_ans += math.ceil((m_ans - t_ans) / 2)print(t_ans)