結果
| 問題 |
No.2921 Seated in Classroom
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 15:05:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 214 bytes |
| コンパイル時間 | 80 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-12 15:05:46 |
| 合計ジャッジ時間 | 6,486 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | WA * 5 |
ソースコード
T = int(input())
for i in range(T):
N, M = map(int, input().split())
tx = (N + 3) // 4
zan = 4 * tx + (4 - N % 4)
M -= zan
if M <= 0:
print(tx)
else:
print(tx + (M + 7) // 8)