結果
| 問題 | No.853 河原の石 |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 22:52:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 83,584 KB |
| 最終ジャッジ日時 | 2026-07-09 04:37:49 |
| 合計ジャッジ時間 | 47,915 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 54 |
ソースコード
H, W = map(int, input().split())
d = abs(W)
if H == 0 or d == 0:
print(0)
else:
total = 0
for i in range(H):
current_H = H - i
if current_H >= d:
total += 1
else:
total += 2 * (d - current_H)
print(total)
lam6er