結果
| 問題 | No.2921 Seated in Classroom |
| コンテスト | |
| ユーザー |
AwashAmityOak
|
| 提出日時 | 2024-10-12 15:50:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-12 15:50:42 |
| 合計ジャッジ時間 | 12,185 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 3 TLE * 2 |
ソースコード
def solve(): N, M = map(int, input().split()) l, r = 0, N+M while l < r: m = l + (r - l) // 2 if M <= 4*m and N <= 8*m - M: r = m else: l = m + 1 print(l) T = int(input()) for t in range(T): solve()
AwashAmityOak