結果
| 問題 | No.3534 Make Many Fences |
| コンテスト | |
| ユーザー |
nauclhlt
|
| 提出日時 | 2026-03-04 15:21:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 372 bytes |
| 記録 | |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-05-08 20:50:58 |
| 合計ジャッジ時間 | 6,915 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 2 WA * 7 |
ソースコード
T = int(input())
for t in range(T):
N, M = map(int, input().split())
if N % 2 == 1:
N -= 1
if M % 2 == 1:
M -= 1
if N < 2 * M:
print(3 * (N // 4))
else:
ans = 3 * (M // 2)
N -= 2 * M
M = 0
ans += 6 * (N / 10)
N %= 10
if 6 <= N:
ans += 3
print(ans)
nauclhlt