結果

問題 No.1471 Sort Queries
ユーザー 👑 tatt61880tatt61880
提出日時 2021-04-09 21:45:21
言語 Kuin
(KuinC++ v.2021.9.17)
結果
TLE  
実行時間 -
コード長 313 bytes
コンパイル時間 2,255 ms
コンパイル使用メモリ 147,688 KB
実行使用メモリ 8,712 KB
最終ジャッジ日時 2023-10-14 18:24:00
合計ジャッジ時間 13,434 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
8,260 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 2 ms
4,352 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 3 ms
4,348 KB
testcase_08 AC 3 ms
4,348 KB
testcase_09 AC 2 ms
4,352 KB
testcase_10 AC 2 ms
4,356 KB
testcase_11 AC 3 ms
4,348 KB
testcase_12 AC 2 ms
4,352 KB
testcase_13 AC 129 ms
4,352 KB
testcase_14 AC 109 ms
4,352 KB
testcase_15 AC 205 ms
4,352 KB
testcase_16 AC 39 ms
4,352 KB
testcase_17 AC 90 ms
4,352 KB
testcase_18 AC 59 ms
4,352 KB
testcase_19 AC 52 ms
4,348 KB
testcase_20 AC 210 ms
4,352 KB
testcase_21 AC 97 ms
4,348 KB
testcase_22 AC 77 ms
4,352 KB
testcase_23 AC 472 ms
4,352 KB
testcase_24 AC 467 ms
4,352 KB
testcase_25 AC 770 ms
4,352 KB
testcase_26 AC 406 ms
4,352 KB
testcase_27 AC 698 ms
4,352 KB
testcase_28 AC 692 ms
4,348 KB
testcase_29 AC 403 ms
4,348 KB
testcase_30 AC 444 ms
4,368 KB
testcase_31 AC 715 ms
4,352 KB
testcase_32 AC 592 ms
4,352 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var q: int :: cui@inputInt()
	var s: []char :: cui@input()
	for(1, q)
		var l: int :: cui@inputInt()
		var r: int :: cui@inputInt()
		var x: int :: cui@inputInt()
		var t: []char :: s.sub(l - 1, r - l + 1)
		do t.sort()
		do cui@print("\{t[x - 1]}\n")
	end for
end func
0