結果

問題 No.1338 Giant Class
ユーザー tailstails
提出日時 2021-01-15 21:39:27
言語 cLay
(20240104-1)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 2,992 ms
コンパイル使用メモリ 167,244 KB
実行使用メモリ 11,660 KB
最終ジャッジ日時 2023-09-19 02:03:02
合計ジャッジ時間 8,431 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 2 ms
4,384 KB
testcase_02 AC 14 ms
5,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,384 KB
testcase_05 AC 2 ms
4,388 KB
testcase_06 AC 52 ms
9,156 KB
testcase_07 AC 76 ms
11,152 KB
testcase_08 AC 49 ms
8,720 KB
testcase_09 AC 45 ms
8,268 KB
testcase_10 AC 91 ms
11,448 KB
testcase_11 AC 7 ms
4,384 KB
testcase_12 AC 48 ms
8,472 KB
testcase_13 AC 47 ms
8,984 KB
testcase_14 AC 11 ms
5,092 KB
testcase_15 AC 17 ms
5,792 KB
testcase_16 AC 6 ms
4,384 KB
testcase_17 AC 47 ms
8,988 KB
testcase_18 AC 11 ms
5,000 KB
testcase_19 AC 21 ms
6,036 KB
testcase_20 AC 94 ms
11,660 KB
testcase_21 AC 93 ms
11,596 KB
testcase_22 AC 93 ms
11,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{
	map<ll,ll>amap;
	ll@h,@w,@q,n=h*w;
	rep(q){
		ll@y,@x;
		y=h+1-y;
		if(amap[x]<y){
			n-=y-amap[x];
			amap[x]=y;
		}
		wt(n);
	}
}
0