結果

問題 No.2542 Yokan for Two
ユーザー tailstails
提出日時 2023-11-24 21:58:11
言語 cLay
(20240104-1)
結果
AC  
実行時間 1,635 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 2,288 ms
コンパイル使用メモリ 181,068 KB
実行使用メモリ 23,256 KB
最終ジャッジ日時 2023-11-24 21:58:44
合計ジャッジ時間 26,159 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 215 ms
20,716 KB
testcase_04 AC 300 ms
7,936 KB
testcase_05 AC 851 ms
17,004 KB
testcase_06 AC 1 ms
6,676 KB
testcase_07 AC 1,635 ms
22,972 KB
testcase_08 AC 347 ms
15,268 KB
testcase_09 AC 1,552 ms
22,592 KB
testcase_10 AC 108 ms
7,872 KB
testcase_11 AC 188 ms
7,772 KB
testcase_12 AC 729 ms
16,092 KB
testcase_13 AC 116 ms
6,676 KB
testcase_14 AC 640 ms
10,096 KB
testcase_15 AC 816 ms
12,736 KB
testcase_16 AC 775 ms
12,896 KB
testcase_17 AC 626 ms
9,776 KB
testcase_18 AC 761 ms
12,840 KB
testcase_19 AC 327 ms
7,880 KB
testcase_20 AC 252 ms
6,676 KB
testcase_21 AC 288 ms
6,676 KB
testcase_22 AC 281 ms
6,676 KB
testcase_23 AC 320 ms
6,676 KB
testcase_24 AC 2 ms
6,676 KB
testcase_25 AC 2 ms
6,676 KB
testcase_26 AC 2 ms
6,676 KB
testcase_27 AC 2 ms
6,676 KB
testcase_28 AC 3 ms
6,676 KB
testcase_29 AC 295 ms
23,256 KB
testcase_30 AC 600 ms
9,780 KB
testcase_31 AC 642 ms
9,568 KB
testcase_32 AC 595 ms
9,440 KB
testcase_33 AC 715 ms
9,856 KB
testcase_34 AC 759 ms
12,968 KB
testcase_35 AC 803 ms
12,904 KB
testcase_36 AC 787 ms
13,024 KB
testcase_37 AC 820 ms
13,020 KB
testcase_38 AC 787 ms
13,136 KB
testcase_39 AC 914 ms
13,676 KB
testcase_40 AC 864 ms
13,332 KB
testcase_41 AC 753 ms
12,876 KB
testcase_42 AC 789 ms
12,736 KB
testcase_43 AC 834 ms
13,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@l,@n,y=0,z=ll_inf;
unordered_set<ll>s;
s.insert(l*2);
rep(i,n){
	ll@x,d=x-y;
	y=x;
	unordered_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