結果
| 問題 | No.2921 Seated in Classroom |
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2024-10-13 14:46:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 990 ms |
| コンパイル使用メモリ | 81,996 KB |
| 実行使用メモリ | 76,672 KB |
| 最終ジャッジ日時 | 2024-10-13 14:47:02 |
| 合計ジャッジ時間 | 4,731 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)//2
print(max((M+3)//4 - d, (N+3)//4 + d))
Cecil