結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 00:55:42
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 857 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 131,184 KB
実行使用メモリ 140,564 KB
最終ジャッジ日時 2023-08-16 03:44:44
合計ジャッジ時間 27,868 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 421 ms
127,160 KB
testcase_01 AC 419 ms
127,300 KB
testcase_02 AC 423 ms
130,088 KB
testcase_03 AC 410 ms
127,804 KB
testcase_04 AC 404 ms
129,560 KB
testcase_05 AC 404 ms
128,712 KB
testcase_06 AC 405 ms
128,460 KB
testcase_07 AC 402 ms
128,772 KB
testcase_08 AC 401 ms
128,836 KB
testcase_09 AC 383 ms
129,004 KB
testcase_10 AC 382 ms
129,028 KB
testcase_11 AC 407 ms
129,140 KB
testcase_12 AC 401 ms
128,864 KB
testcase_13 AC 401 ms
128,780 KB
testcase_14 AC 407 ms
128,832 KB
testcase_15 AC 409 ms
128,684 KB
testcase_16 AC 739 ms
136,852 KB
testcase_17 AC 795 ms
137,696 KB
testcase_18 AC 470 ms
130,280 KB
testcase_19 AC 789 ms
140,564 KB
testcase_20 AC 556 ms
130,604 KB
testcase_21 AC 519 ms
130,044 KB
testcase_22 AC 718 ms
136,272 KB
testcase_23 AC 601 ms
132,436 KB
testcase_24 AC 709 ms
135,536 KB
testcase_25 AC 524 ms
130,472 KB
testcase_26 AC 643 ms
133,840 KB
testcase_27 AC 815 ms
139,992 KB
testcase_28 AC 666 ms
134,128 KB
testcase_29 AC 776 ms
137,104 KB
testcase_30 AC 668 ms
134,196 KB
testcase_31 AC 542 ms
130,232 KB
testcase_32 AC 555 ms
130,236 KB
testcase_33 AC 820 ms
138,408 KB
testcase_34 AC 515 ms
132,080 KB
testcase_35 AC 734 ms
135,864 KB
testcase_36 AC 840 ms
138,696 KB
testcase_37 AC 834 ms
138,516 KB
testcase_38 AC 841 ms
138,556 KB
testcase_39 AC 857 ms
138,684 KB
testcase_40 AC 838 ms
138,540 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/perl
# yukicoder My Practice
# author: Leonardone @ NEETSDKASU

my $n = $*IN.get;
my @a = $*IN.get.words.map({ .Int });
my $mx = 0;
my $ans = 0;

for @a {
	$mx = max($mx, $_);
	if $ans < $_ && $_ < $mx {
		$ans = $_;
	}
}

say $ans;
0