結果

問題 No.1065 電柱 / Pole (Easy)
ユーザー tailstails
提出日時 2020-06-03 01:24:54
言語 cLay
(20231016-1)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 3,012 ms
コンパイル使用メモリ 174,004 KB
実行使用メモリ 27,552 KB
最終ジャッジ日時 2023-09-19 00:38:46
合計ジャッジ時間 10,412 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
9,960 KB
testcase_01 AC 3 ms
9,868 KB
testcase_02 AC 41 ms
20,368 KB
testcase_03 AC 56 ms
24,696 KB
testcase_04 AC 56 ms
24,680 KB
testcase_05 AC 18 ms
24,680 KB
testcase_06 AC 18 ms
24,720 KB
testcase_07 AC 10 ms
15,860 KB
testcase_08 AC 28 ms
27,240 KB
testcase_09 AC 5 ms
12,620 KB
testcase_10 AC 14 ms
18,180 KB
testcase_11 AC 11 ms
16,228 KB
testcase_12 AC 10 ms
13,152 KB
testcase_13 AC 39 ms
20,096 KB
testcase_14 AC 49 ms
20,304 KB
testcase_15 AC 60 ms
22,512 KB
testcase_16 AC 24 ms
15,700 KB
testcase_17 AC 66 ms
22,868 KB
testcase_18 AC 18 ms
15,536 KB
testcase_19 AC 63 ms
22,588 KB
testcase_20 AC 17 ms
15,376 KB
testcase_21 AC 21 ms
15,608 KB
testcase_22 AC 57 ms
22,424 KB
testcase_23 AC 3 ms
9,932 KB
testcase_24 AC 3 ms
9,952 KB
testcase_25 AC 9 ms
13,088 KB
testcase_26 AC 32 ms
18,024 KB
testcase_27 AC 31 ms
18,132 KB
testcase_28 AC 51 ms
20,276 KB
testcase_29 AC 8 ms
12,600 KB
testcase_30 AC 62 ms
22,532 KB
testcase_31 AC 45 ms
20,272 KB
testcase_32 AC 27 ms
16,040 KB
testcase_33 AC 64 ms
22,524 KB
testcase_34 AC 20 ms
15,580 KB
testcase_35 AC 66 ms
22,544 KB
testcase_36 AC 3 ms
9,924 KB
testcase_37 AC 3 ms
9,980 KB
testcase_38 AC 3 ms
10,220 KB
testcase_39 AC 3 ms
9,992 KB
testcase_40 AC 3 ms
9,872 KB
testcase_41 AC 93 ms
27,552 KB
testcase_42 AC 23 ms
15,984 KB
testcase_43 AC 39 ms
20,384 KB
testcase_44 AC 14 ms
13,268 KB
testcase_45 AC 37 ms
20,656 KB
testcase_46 AC 3 ms
10,016 KB
testcase_47 AC 3 ms
10,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int n,m,x,y,p[2d5],q[2d5],P[2d5],Q[2d5];
double c[2d5],r[2d5];
wgraph<double>g;
{
	rd(n,m,x--,y--,(p,q)(n),(P--,Q--)(m));
	rep(i,m)c[i]=hypot(p[Q[i]]-p[P[i]],q[Q[i]]-q[P[i]]);
	g.setEdge(n,m,P,Q,c);
	g.getDist(x,r);
	wt(r[y]);
}
0