結果

問題 No.2092 Conjugation
ユーザー laneguelanegue
提出日時 2022-10-07 21:36:03
言語 D
(dmd 2.107.1)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 2,363 ms
コンパイル使用メモリ 165,264 KB
実行使用メモリ 12,616 KB
最終ジャッジ日時 2023-09-04 18:30:52
合計ジャッジ時間 4,200 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 21 ms
7,220 KB
testcase_08 AC 36 ms
8,516 KB
testcase_09 AC 30 ms
7,960 KB
testcase_10 AC 31 ms
7,760 KB
testcase_11 AC 31 ms
7,708 KB
testcase_12 AC 30 ms
8,276 KB
testcase_13 AC 26 ms
7,444 KB
testcase_14 AC 25 ms
7,436 KB
testcase_15 AC 29 ms
7,684 KB
testcase_16 AC 40 ms
9,064 KB
testcase_17 AC 45 ms
11,136 KB
testcase_18 AC 41 ms
12,616 KB
testcase_19 AC 8 ms
5,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;
void main(){
	auto N = readln.chomp.to!int;
	auto A = readln.split.to!(int[]);
	string[] B;
	auto i = N - 1;
	for(auto j = 0; j < A[0]; j++){
		while(A[i] <= j){
			i--;
		}
		B ~= (i + 1).to!string;
	}
	writeln(B.join(" "));
}
0