結果
問題 | No.2921 Seated in Classroom |
ユーザー |
![]() |
提出日時 | 2024-09-14 16:11:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 566 ms / 2,000 ms |
コード長 | 335 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 82,308 KB |
実行使用メモリ | 77,056 KB |
最終ジャッジ日時 | 2024-09-14 16:11:18 |
合計ジャッジ時間 | 3,521 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
t = int(input())def ceil(a, b):return (a+b-1)//bif((1 <= t <= 2*10**5) == False): print("WA")for i in range(t):n, m = map(int,input().split())if((1<= min(n,m) <= max(n,m) <= 10**9) == False): print("WA")a = ceil(n, 4)b = 8 * a - nc = max(m - b, 0)d = ceil(c, 8)ans = a + dprint(ans)