結果

問題 No.709 優勝可能性
ユーザー tailstails
提出日時 2022-11-16 20:51:13
言語 cLay
(20240104-1)
結果
AC  
実行時間 31 ms / 3,500 ms
コード長 230 bytes
コンパイル時間 3,331 ms
コンパイル使用メモリ 174,052 KB
実行使用メモリ 13,840 KB
最終ジャッジ日時 2023-10-17 18:20:25
合計ジャッジ時間 6,159 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 AC 12 ms
8,252 KB
testcase_11 AC 7 ms
6,564 KB
testcase_12 AC 23 ms
11,396 KB
testcase_13 AC 24 ms
13,472 KB
testcase_14 AC 21 ms
13,556 KB
testcase_15 AC 20 ms
13,652 KB
testcase_16 AC 20 ms
13,824 KB
testcase_17 AC 21 ms
13,840 KB
testcase_18 AC 2 ms
4,348 KB
testcase_19 AC 2 ms
4,348 KB
testcase_20 AC 31 ms
13,560 KB
testcase_21 AC 31 ms
13,560 KB
testcase_22 AC 2 ms
4,348 KB
testcase_23 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@m;
ll a[m]{},c[m]{},d[n]{},b[m][n];
ll z=0;
rep(i,n){
	rep(j,m){
		ll@r;
		if(r>=a[j]){
			if(r>a[j]){
				a[j]=r;
				rrep(k,c[j]){
					z-=!--d[b[j][k]];
				}
				c[j]=0;
			}
			z+=!d[b[j][c[j]++]=i]++;
		}
	}
	wt(z);
}
0