結果

問題 No.1268 Fruit Rush 2
ユーザー tailstails
提出日時 2020-10-23 22:59:46
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 5,004 ms
コンパイル使用メモリ 205,336 KB
実行使用メモリ 10,352 KB
最終ジャッジ日時 2023-09-19 01:41:44
合計ジャッジ時間 6,662 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,452 KB
testcase_01 AC 2 ms
5,484 KB
testcase_02 AC 2 ms
5,496 KB
testcase_03 AC 2 ms
5,632 KB
testcase_04 AC 2 ms
5,440 KB
testcase_05 AC 2 ms
5,520 KB
testcase_06 AC 2 ms
5,572 KB
testcase_07 AC 2 ms
5,644 KB
testcase_08 AC 2 ms
5,432 KB
testcase_09 AC 2 ms
5,632 KB
testcase_10 AC 2 ms
5,680 KB
testcase_11 AC 2 ms
5,568 KB
testcase_12 AC 2 ms
5,528 KB
testcase_13 AC 2 ms
5,440 KB
testcase_14 AC 2 ms
5,584 KB
testcase_15 AC 2 ms
5,452 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 9 ms
8,016 KB
testcase_32 AC 9 ms
8,032 KB
testcase_33 AC 12 ms
8,212 KB
testcase_34 AC 7 ms
8,016 KB
testcase_35 AC 12 ms
8,016 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;
		}
		w=x;
	}
	wt(z+n);
}
0