結果

問題 No.812 Change of Class
ユーザー tailstails
提出日時 2020-09-02 14:06:51
言語 cLay
(20240104-1)
結果
AC  
実行時間 130 ms / 4,000 ms
コード長 201 bytes
コンパイル時間 2,148 ms
コンパイル使用メモリ 166,244 KB
実行使用メモリ 9,632 KB
最終ジャッジ日時 2023-09-19 01:06:26
合計ジャッジ時間 10,164 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
9,224 KB
testcase_01 AC 10 ms
5,776 KB
testcase_02 AC 31 ms
6,384 KB
testcase_03 AC 65 ms
9,296 KB
testcase_04 AC 57 ms
9,124 KB
testcase_05 AC 130 ms
9,632 KB
testcase_06 AC 102 ms
9,396 KB
testcase_07 AC 3 ms
5,552 KB
testcase_08 AC 3 ms
5,480 KB
testcase_09 AC 112 ms
9,352 KB
testcase_10 AC 116 ms
9,340 KB
testcase_11 AC 5 ms
8,172 KB
testcase_12 AC 67 ms
9,276 KB
testcase_13 AC 2 ms
5,380 KB
testcase_14 AC 2 ms
5,384 KB
testcase_15 AC 82 ms
8,824 KB
testcase_16 AC 7 ms
5,604 KB
testcase_17 AC 70 ms
9,088 KB
testcase_18 AC 53 ms
6,520 KB
testcase_19 AC 62 ms
8,760 KB
testcase_20 AC 124 ms
9,372 KB
testcase_21 AC 52 ms
6,564 KB
testcase_22 AC 23 ms
5,940 KB
testcase_23 AC 5 ms
5,768 KB
testcase_24 AC 8 ms
5,624 KB
testcase_25 AC 19 ms
5,864 KB
testcase_26 AC 100 ms
9,164 KB
testcase_27 AC 89 ms
8,916 KB
testcase_28 AC 58 ms
8,692 KB
testcase_29 AC 16 ms
5,732 KB
testcase_30 AC 78 ms
8,916 KB
testcase_31 AC 67 ms
6,620 KB
testcase_32 AC 27 ms
6,060 KB
testcase_33 AC 78 ms
9,236 KB
testcase_34 AC 7 ms
5,596 KB
testcase_35 AC 16 ms
5,780 KB
testcase_36 AC 8 ms
5,588 KB
testcase_37 AC 38 ms
6,180 KB
testcase_38 AC 2 ms
6,016 KB
testcase_39 AC 40 ms
6,152 KB
testcase_40 AC 11 ms
5,820 KB
testcase_41 AC 3 ms
5,704 KB
testcase_42 AC 93 ms
8,756 KB
testcase_43 AC 9 ms
6,292 KB
testcase_44 AC 59 ms
6,528 KB
testcase_45 AC 8 ms
5,668 KB
testcase_46 AC 7 ms
6,232 KB
testcase_47 AC 58 ms
6,524 KB
testcase_48 AC 62 ms
8,620 KB
testcase_49 AC 17 ms
5,788 KB
testcase_50 AC 3 ms
5,572 KB
testcase_51 AC 15 ms
5,888 KB
testcase_52 AC 30 ms
6,396 KB
testcase_53 AC 12 ms
5,668 KB
testcase_54 AC 10 ms
5,680 KB
testcase_55 AC 31 ms
8,480 KB
testcase_56 AC 35 ms
8,624 KB
testcase_57 AC 36 ms
8,664 KB
testcase_58 AC 20 ms
6,028 KB
testcase_59 AC 41 ms
8,916 KB
testcase_60 AC 2 ms
5,448 KB
testcase_61 AC 2 ms
5,412 KB
testcase_62 AC 2 ms
5,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int n,m,o,w,p[2d5],q[2d5];graph g;{rd(n,m,(p,q)(m),o);g.setEdge(n+1,m,p,q);REP(o){rd(*q);p[1..n]=~0;p[*q]=m=w=0;rep[q](a,w+1)rep[g.edge[a]](b,g.es[a])m>?=~p[b]?m:log2((p[q[++w]=b]=p[a])++)+1;wt(w,m);}}
0