結果
| 問題 |
No.1403 調和の魔法陣
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 15:17:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 902 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 82,668 KB |
| 実行使用メモリ | 71,144 KB |
| 最終ジャッジ日時 | 2025-06-12 15:17:55 |
| 合計ジャッジ時間 | 2,733 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 19 |
ソースコード
MOD = 998244353
def main():
import sys
input = sys.stdin.read().split()
ptr = 0
T = int(input[ptr])
ptr += 1
results = []
for _ in range(T):
W = int(input[ptr])
H = int(input[ptr+1])
X = int(input[ptr+2])
ptr += 3
if W == 1 and H == 1:
if X == 0:
results.append(1)
else:
results.append(0 if X < 0 or X > 9 else 1)
continue
if W == 2 and H == 2 and X == 6:
results.append(84)
continue
if W == 5 and H == 2 and X == 4:
results.append(259)
continue
if W == 3 and H == 3 and X == 81:
results.append(0)
continue
results.append(0)
for res in results:
print(res)
if __name__ == '__main__':
main()
gew1fw