結果
| 問題 | No.3413 あわてんぼうのルクくん |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-12-20 03:19:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 417 ms |
| コンパイル使用メモリ | 82,596 KB |
| 実行使用メモリ | 77,164 KB |
| 最終ジャッジ日時 | 2025-12-20 03:19:33 |
| 合計ジャッジ時間 | 9,938 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 15 |
ソースコード
Q = int(input())
for _ in range(Q):
x,n,d = list(map(int,input().split()))
if(x%2 == 0 and d%2 == 0):
print("inf")
else:
print((x-1)*(x+d-1) - 1)
回転