結果

問題 No.1268 Fruit Rush 2
ユーザー tailstails
提出日時 2020-10-23 23:01:25
言語 cLay
(20240104-1)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 4,755 ms
コンパイル使用メモリ 205,744 KB
実行使用メモリ 10,136 KB
最終ジャッジ日時 2023-09-19 01:41:24
合計ジャッジ時間 9,019 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,684 KB
testcase_01 AC 2 ms
5,512 KB
testcase_02 AC 2 ms
5,500 KB
testcase_03 AC 2 ms
5,524 KB
testcase_04 AC 2 ms
5,444 KB
testcase_05 AC 2 ms
5,500 KB
testcase_06 AC 2 ms
5,628 KB
testcase_07 AC 2 ms
5,504 KB
testcase_08 AC 2 ms
5,628 KB
testcase_09 AC 2 ms
5,456 KB
testcase_10 AC 2 ms
5,436 KB
testcase_11 AC 2 ms
5,500 KB
testcase_12 AC 2 ms
5,508 KB
testcase_13 AC 2 ms
5,576 KB
testcase_14 AC 2 ms
5,452 KB
testcase_15 AC 2 ms
5,452 KB
testcase_16 AC 9 ms
7,588 KB
testcase_17 AC 9 ms
7,284 KB
testcase_18 AC 8 ms
7,460 KB
testcase_19 AC 9 ms
7,440 KB
testcase_20 AC 8 ms
7,412 KB
testcase_21 AC 9 ms
7,556 KB
testcase_22 AC 9 ms
7,732 KB
testcase_23 AC 9 ms
7,588 KB
testcase_24 AC 8 ms
7,424 KB
testcase_25 AC 9 ms
7,336 KB
testcase_26 AC 14 ms
10,116 KB
testcase_27 AC 14 ms
10,116 KB
testcase_28 AC 14 ms
10,120 KB
testcase_29 AC 13 ms
10,068 KB
testcase_30 AC 13 ms
10,136 KB
testcase_31 AC 9 ms
8,292 KB
testcase_32 AC 9 ms
8,208 KB
testcase_33 AC 13 ms
8,160 KB
testcase_34 AC 7 ms
8,020 KB
testcase_35 AC 12 ms
8,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,v1,v2,z,a[2d5];
{
	rd(n,a(n));
	sortA(n,a);
	ll w=-2;
	rep[a](x,n){
		if(w==x-1){
			(v2,v1)=(v1,v2);
			z+=v2+=1;
		}else if(w==x-2){
			z+=v2;
			v1=0;
		}else{
			v1=v2=0;
		}
		w=x;
	}
	wt(z+n);
}
0