結果

問題 No.2542 Yokan for Two
ユーザー tailstails
提出日時 2023-11-24 21:56:59
言語 cLay
(20240104-1)
結果
TLE  
実行時間 -
コード長 195 bytes
コンパイル時間 2,960 ms
コンパイル使用メモリ 180,040 KB
実行使用メモリ 20,480 KB
最終ジャッジ日時 2023-11-24 21:57:36
合計ジャッジ時間 9,675 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 263 ms
19,584 KB
testcase_04 AC 379 ms
7,680 KB
testcase_05 AC 1,308 ms
18,816 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 TLE -
testcase_08 AC 463 ms
17,152 KB
testcase_09 TLE -
testcase_10 AC 153 ms
7,424 KB
testcase_11 AC 282 ms
7,296 KB
testcase_12 AC 964 ms
18,048 KB
testcase_13 AC 137 ms
6,676 KB
testcase_14 AC 912 ms
11,136 KB
testcase_15 AC 1,215 ms
12,032 KB
testcase_16 AC 1,078 ms
11,520 KB
testcase_17 AC 925 ms
10,624 KB
testcase_18 AC 1,183 ms
12,288 KB
testcase_19 AC 533 ms
7,680 KB
testcase_20 AC 349 ms
6,784 KB
testcase_21 AC 413 ms
6,912 KB
testcase_22 AC 441 ms
7,168 KB
testcase_23 AC 470 ms
7,168 KB
testcase_24 AC 2 ms
6,676 KB
testcase_25 AC 1 ms
6,676 KB
testcase_26 AC 2 ms
6,676 KB
testcase_27 AC 2 ms
6,676 KB
testcase_28 AC 2 ms
6,676 KB
testcase_29 AC 344 ms
19,840 KB
testcase_30 AC 972 ms
10,496 KB
testcase_31 AC 938 ms
10,368 KB
testcase_32 AC 927 ms
10,112 KB
testcase_33 AC 988 ms
10,752 KB
testcase_34 AC 1,119 ms
11,904 KB
testcase_35 AC 1,245 ms
12,160 KB
testcase_36 AC 1,145 ms
11,648 KB
testcase_37 AC 1,201 ms
12,544 KB
testcase_38 AC 1,173 ms
12,672 KB
testcase_39 AC 1,304 ms
13,440 KB
testcase_40 AC 1,221 ms
12,928 KB
testcase_41 AC 1,158 ms
12,032 KB
testcase_42 AC 1,178 ms
11,904 KB
testcase_43 AC 1,187 ms
12,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@l,@n,y=0,z=ll_inf;
set<ll>s;
s.insert(l*2);
rep(i,n){
	ll@x,d=x-y;
	y=x;
	set<ll>t;
	for(ll a:s){
		t.insert(-(d+a));
		t.insert(+(d+a));
	}
	s=t;
}
for(ll a:s){
	z<?=abs(l*2-a+l-y);
}
wt(z);
0