結果
問題 | No.2702 Nand Nor Matrix |
ユーザー |
|
提出日時 | 2024-02-06 13:20:56 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 655 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 847,888 KB |
最終ジャッジ日時 | 2024-02-06 20:47:33 |
合計ジャッジ時間 | 10,241 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 243 ms
97,736 KB |
testcase_02 | AC | 128 ms
76,668 KB |
testcase_03 | AC | 240 ms
100,912 KB |
testcase_04 | AC | 519 ms
174,012 KB |
testcase_05 | AC | 412 ms
154,812 KB |
testcase_06 | AC | 268 ms
102,332 KB |
testcase_07 | AC | 321 ms
118,716 KB |
testcase_08 | AC | 231 ms
92,472 KB |
testcase_09 | AC | 291 ms
113,468 KB |
testcase_10 | AC | 349 ms
122,044 KB |
testcase_11 | AC | 164 ms
78,848 KB |
testcase_12 | AC | 245 ms
92,600 KB |
testcase_13 | AC | 198 ms
82,404 KB |
testcase_14 | AC | 315 ms
125,244 KB |
testcase_15 | AC | 225 ms
93,100 KB |
testcase_16 | MLE | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
testcase_46 | -- | - |
testcase_47 | -- | - |
testcase_48 | -- | - |
testcase_49 | -- | - |
testcase_50 | -- | - |
testcase_51 | -- | - |
ソースコード
import sys sys.setrecursionlimit((1<<19)-1) #import pypyjit #pypyjit.set_param('max_unroll_recursion=-1') input=sys.stdin.buffer.readline N=int(input()) A=list(map(int,input().split())) mat=[[0]*N for i in range(N)] mat[0]=A B=[int(input()) for i in range(N-1)] for i in range(N-1): mat[i+1][0]=B[i] ser=[] ser.append([i[:] for i in mat]) for i in range(400): for j in range(N-1,0,-1): for k in range(N-1,0,-1): if mat[j][k]==mat[j-1][k] or mat[j][k]==mat[j][k-1]: mat[j][k]^=1 ser.append([i[:] for i in mat]) Q=int(input()) for i in range(Q): T,R,C=map(int,input().split()) print(ser[T][R-1][C-1])