結果

問題 No.1103 Directed Length Sum
ユーザー tailstails
提出日時 2020-07-04 00:56:41
言語 cLay
(20240104-1)
結果
AC  
実行時間 263 ms / 3,000 ms
コード長 158 bytes
コンパイル時間 6,244 ms
コンパイル使用メモリ 215,600 KB
実行使用メモリ 49,464 KB
最終ジャッジ日時 2023-09-19 00:43:42
合計ジャッジ時間 13,232 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
9,752 KB
testcase_01 AC 3 ms
9,560 KB
testcase_02 AC 66 ms
45,308 KB
testcase_03 AC 53 ms
49,464 KB
testcase_04 AC 110 ms
32,988 KB
testcase_05 AC 263 ms
45,312 KB
testcase_06 AC 58 ms
26,360 KB
testcase_07 AC 14 ms
14,984 KB
testcase_08 AC 22 ms
17,372 KB
testcase_09 AC 10 ms
14,424 KB
testcase_10 AC 31 ms
19,540 KB
testcase_11 AC 154 ms
35,288 KB
testcase_12 AC 68 ms
26,312 KB
testcase_13 AC 32 ms
19,488 KB
testcase_14 AC 8 ms
14,220 KB
testcase_15 AC 47 ms
21,944 KB
testcase_16 AC 204 ms
37,096 KB
testcase_17 AC 188 ms
37,332 KB
testcase_18 AC 31 ms
19,504 KB
testcase_19 AC 153 ms
35,076 KB
testcase_20 AC 12 ms
14,648 KB
testcase_21 AC 20 ms
17,132 KB
testcase_22 AC 99 ms
30,952 KB
testcase_23 AC 53 ms
24,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

graph g;int n,r,s,a[1d6],b[1d6];{rd(n--,(a--,b--)(n));sortA(n,b,a);r+=b[0..n-1]==r;g.setEdge(n+1,n,a,b);g.getDist(r,b);s=((ll)b[0..n]*-~b[0..]/2+s)%MD;wt(s);}
0