結果

問題 No.697 池の数はいくつか
ユーザー %20%20
提出日時 2018-06-09 23:07:01
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 4,129 ms
コンパイル使用メモリ 160,888 KB
実行使用メモリ 42,584 KB
最終ジャッジ日時 2023-08-16 22:15:58
合計ジャッジ時間 6,305 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,404 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,380 KB
testcase_03 AC 2 ms
5,560 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,500 KB
testcase_06 WA -
testcase_07 AC 2 ms
5,400 KB
testcase_08 AC 2 ms
5,368 KB
testcase_09 WA -
testcase_10 AC 2 ms
5,572 KB
testcase_11 AC 2 ms
5,372 KB
testcase_12 AC 2 ms
5,424 KB
testcase_13 AC 2 ms
5,400 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2 ms
5,568 KB
testcase_17 AC 2 ms
5,380 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 2 ms
5,492 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2 ms
5,620 KB
testcase_23 AC 2 ms
5,376 KB
testcase_24 WA -
testcase_25 AC 39 ms
9,676 KB
testcase_26 AC 40 ms
9,668 KB
testcase_27 WA -
testcase_28 AC 39 ms
9,676 KB
testcase_29 AC 214 ms
42,396 KB
testcase_30 WA -
testcase_31 AC 213 ms
42,392 KB
testcase_32 AC 332 ms
42,384 KB
testcase_33 AC 333 ms
42,416 KB
testcase_34 AC 334 ms
42,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int A[1d7],H,W,i,z,t;int f(int i){return A[i]=A[i]-i?f(A[i]):i;}{rd(H,W);rep(j,H*W){rd(t);i=j%W-j/W*~W-~W;if(A[i]=t*i)rep(k,2)if(t=f(i-1-k*W))A[f(i)]=t;}for(;--i;)z+=i==f(i);wt(z);}
0