結果

問題 No.1382 Travel in Mitaru city
ユーザー tailstails
提出日時 2021-02-08 16:26:17
言語 cLay
(20240104-1)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 2,515 ms
コンパイル使用メモリ 173,832 KB
実行使用メモリ 13,480 KB
最終ジャッジ日時 2023-09-19 02:10:32
合計ジャッジ時間 12,253 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,428 KB
testcase_01 AC 2 ms
7,432 KB
testcase_02 AC 2 ms
7,444 KB
testcase_03 AC 2 ms
7,448 KB
testcase_04 AC 2 ms
7,636 KB
testcase_05 AC 2 ms
7,380 KB
testcase_06 AC 10 ms
9,088 KB
testcase_07 AC 8 ms
8,364 KB
testcase_08 AC 6 ms
7,760 KB
testcase_09 AC 11 ms
8,904 KB
testcase_10 AC 10 ms
8,860 KB
testcase_11 AC 23 ms
10,992 KB
testcase_12 AC 24 ms
10,984 KB
testcase_13 AC 25 ms
11,080 KB
testcase_14 AC 21 ms
10,908 KB
testcase_15 AC 22 ms
10,936 KB
testcase_16 AC 35 ms
11,328 KB
testcase_17 AC 37 ms
11,340 KB
testcase_18 AC 37 ms
11,328 KB
testcase_19 AC 36 ms
11,324 KB
testcase_20 AC 37 ms
11,436 KB
testcase_21 AC 36 ms
11,332 KB
testcase_22 AC 36 ms
11,364 KB
testcase_23 AC 36 ms
11,316 KB
testcase_24 AC 39 ms
11,368 KB
testcase_25 AC 39 ms
11,356 KB
testcase_26 AC 25 ms
11,344 KB
testcase_27 AC 27 ms
11,324 KB
testcase_28 AC 26 ms
11,324 KB
testcase_29 AC 24 ms
11,348 KB
testcase_30 AC 17 ms
11,312 KB
testcase_31 AC 14 ms
11,172 KB
testcase_32 AC 18 ms
13,480 KB
testcase_33 AC 17 ms
11,256 KB
testcase_34 AC 12 ms
10,928 KB
testcase_35 AC 9 ms
8,496 KB
testcase_36 AC 10 ms
11,252 KB
testcase_37 AC 4 ms
7,556 KB
testcase_38 AC 10 ms
11,264 KB
testcase_39 AC 5 ms
7,916 KB
testcase_40 AC 9 ms
10,976 KB
testcase_41 AC 9 ms
11,084 KB
testcase_42 AC 10 ms
11,292 KB
testcase_43 AC 10 ms
11,124 KB
testcase_44 AC 5 ms
8,208 KB
testcase_45 AC 9 ms
11,300 KB
testcase_46 AC 9 ms
7,920 KB
testcase_47 AC 38 ms
11,460 KB
testcase_48 AC 25 ms
10,952 KB
testcase_49 AC 42 ms
13,376 KB
testcase_50 AC 17 ms
10,592 KB
testcase_51 AC 14 ms
11,344 KB
testcase_52 AC 17 ms
13,364 KB
testcase_53 AC 5 ms
7,792 KB
testcase_54 AC 9 ms
8,420 KB
testcase_55 AC 17 ms
11,344 KB
testcase_56 AC 6 ms
8,020 KB
testcase_57 AC 11 ms
10,964 KB
testcase_58 AC 3 ms
7,544 KB
testcase_59 AC 7 ms
8,108 KB
testcase_60 AC 16 ms
11,360 KB
testcase_61 AC 2 ms
7,444 KB
testcase_62 AC 2 ms
7,380 KB
testcase_63 AC 4 ms
7,744 KB
testcase_64 AC 3 ms
7,464 KB
testcase_65 AC 3 ms
7,516 KB
testcase_66 AC 2 ms
7,444 KB
testcase_67 AC 3 ms
7,468 KB
testcase_68 AC 3 ms
7,484 KB
testcase_69 AC 2 ms
7,444 KB
testcase_70 AC 3 ms
7,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int p[1d5],a[1d5],b[1d5];
{
	int @n,@m,@s,@t;
	--s;
	rd(p(n),(a--,b--)(m));
	graph g;
	g.setEdge(n,m,a,b);
	int x=p[s],y=0;
	DijkstraHeap<int> h;
	h.walloc(n);
	h.init(n);
	h.change(s,-p[s]);
	while(h.size){
		int i=h.pop();
		if(x>p[i]){
			x=p[i];
			y+=1;
		}
		rep[g.edge[i]](j,g.es[i]){
			h.change(j,-p[j]);
		}
	}
	wt(y);
}
0