結果

問題 No.697 池の数はいくつか
ユーザー tailstails
提出日時 2018-06-11 11:55:15
言語 cLay
(20240104-1)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 165 bytes
コンパイル時間 2,012 ms
コンパイル使用メモリ 159,460 KB
実行使用メモリ 319,956 KB
最終ジャッジ日時 2023-08-16 22:24:14
合計ジャッジ時間 47,723 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 MLE -
testcase_04 MLE -
testcase_05 MLE -
testcase_06 MLE -
testcase_07 MLE -
testcase_08 MLE -
testcase_09 MLE -
testcase_10 MLE -
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 MLE -
testcase_19 MLE -
testcase_20 MLE -
testcase_21 MLE -
testcase_22 MLE -
testcase_23 MLE -
testcase_24 MLE -
testcase_25 MLE -
testcase_26 MLE -
testcase_27 MLE -
testcase_28 MLE -
testcase_29 MLE -
testcase_30 MLE -
testcase_31 MLE -
testcase_32 MLE -
testcase_33 MLE -
testcase_34 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘long long int p(long long int)’:
main.cpp:106:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^

ソースコード

diff #

ll a[1d7],h,w,r,d[1d7],e,j;ll p(ll i){a[i]?a[d[e++]=i]=0:0;}{rd(h,w,a(h*w));rep(i,h*w)for(r+=a[i],p(i);e;p(j+w),~j%w&&p(j+1),j%w&&p(j-1),j/w&&p(j-w))j=d[--e];wt(r);}
0