結果

問題 No.1078 I love Matrix Construction
ユーザー tailstails
提出日時 2020-09-17 09:58:03
言語 cLay
(20240104-1)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 2,592 ms
コンパイル使用メモリ 176,780 KB
実行使用メモリ 36,476 KB
最終ジャッジ日時 2023-09-19 01:14:40
合計ジャッジ時間 7,498 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,436 KB
testcase_01 AC 2 ms
7,452 KB
testcase_02 AC 8 ms
11,872 KB
testcase_03 AC 21 ms
18,652 KB
testcase_04 AC 30 ms
22,932 KB
testcase_05 AC 25 ms
20,584 KB
testcase_06 AC 8 ms
12,060 KB
testcase_07 AC 4 ms
9,692 KB
testcase_08 AC 26 ms
21,016 KB
testcase_09 AC 3 ms
7,532 KB
testcase_10 AC 115 ms
36,476 KB
testcase_11 AC 33 ms
22,972 KB
testcase_12 AC 76 ms
31,636 KB
testcase_13 AC 97 ms
36,404 KB
testcase_14 AC 45 ms
27,536 KB
testcase_15 AC 88 ms
33,932 KB
testcase_16 AC 4 ms
7,596 KB
testcase_17 AC 2 ms
7,456 KB
testcase_18 AC 6 ms
9,988 KB
testcase_19 AC 13 ms
14,140 KB
testcase_20 AC 13 ms
14,364 KB
testcase_21 AC 2 ms
7,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int n,k,s[1d3],u[500],e[5d5],f[5d5];graph g;{rd(n,(s--)(2n),u(n));rep(i,n)rep(j,n)f[k+1]=1^(e[k]=2s[i]*n+2j+u[i]%2),f[k]=1^(e[k+1]=2j*n+2s[i+n]+u[i]/2),k+=2;g.setDirectEdge(k,k,e,f);g.scc(e);rep(i,n*n)e[2i]-e[2i+1]?e[i]=e[2i]<e[2i+1]:*e=-(n=1);wt(e(n*n));}
0