結果
問題 |
No.1403 調和の魔法陣
|
ユーザー |
![]() |
提出日時 | 2025-06-12 20:26:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 902 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 70,656 KB |
最終ジャッジ日時 | 2025-06-12 20:27:12 |
合計ジャッジ時間 | 2,525 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()