結果

問題 No.1190 Points
ユーザー tailstails
提出日時 2020-08-24 18:25:21
言語 cLay
(20240104-1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 2,385 ms
コンパイル使用メモリ 165,948 KB
実行使用メモリ 16,432 KB
最終ジャッジ日時 2023-09-19 01:02:31
合計ジャッジ時間 7,669 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,460 KB
testcase_01 AC 2 ms
7,652 KB
testcase_02 AC 3 ms
7,504 KB
testcase_03 AC 17 ms
13,512 KB
testcase_04 AC 15 ms
13,284 KB
testcase_05 AC 15 ms
13,292 KB
testcase_06 AC 22 ms
15,776 KB
testcase_07 AC 25 ms
16,124 KB
testcase_08 AC 20 ms
16,312 KB
testcase_09 AC 23 ms
16,080 KB
testcase_10 AC 20 ms
16,304 KB
testcase_11 AC 17 ms
13,752 KB
testcase_12 AC 22 ms
16,140 KB
testcase_13 AC 19 ms
13,284 KB
testcase_14 AC 7 ms
11,012 KB
testcase_15 AC 30 ms
16,096 KB
testcase_16 AC 5 ms
9,980 KB
testcase_17 AC 29 ms
16,140 KB
testcase_18 AC 14 ms
10,744 KB
testcase_19 AC 7 ms
12,904 KB
testcase_20 AC 16 ms
11,088 KB
testcase_21 AC 9 ms
10,616 KB
testcase_22 AC 10 ms
13,256 KB
testcase_23 AC 31 ms
16,164 KB
testcase_24 AC 33 ms
16,432 KB
testcase_25 AC 21 ms
15,852 KB
testcase_26 AC 15 ms
15,836 KB
testcase_27 AC 21 ms
15,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

graph g;int n,m,p,s,t,u[2d5],v[2d5],a[3d5],b[3d5],y,z[1d5];{rd(n,m,p,s,t,(u,v)(m));rep(i,m)u[m+i]=u[i]+n,v[m+i]=v[i],v[i]+=n;g.setEdge(2n+1,2m,u,v);g.getDist(s,a);g.getDist(t+p%2*n,b);rep(j,1,n+1)z[y]=j,y+=1u*a[j]-1.+1u*b[j]<p||1u*a[n+j]-1.+1u*b[n+j]<p;wtLn(y-!y,z(y));}
0