結果
問題 | No.2921 Seated in Classroom |
ユーザー |
![]() |
提出日時 | 2024-10-13 14:45:27 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 518 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 77,184 KB |
最終ジャッジ日時 | 2024-10-13 14:45:33 |
合計ジャッジ時間 | 3,542 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 5 |
ソースコード
T = int(input())for _ in range(T):N,M = map(int, input().split())#print("#")if (M+3)//4 <= (N+3)//4:print((N+3)//4)else:d = ((M+3)//4 - (N+3)//4 + 1)//2print(max((M+3)//4 - d, (N+3)//4 + d))