結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 00:55:42
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 866 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 134,444 KB
実行使用メモリ 150,260 KB
最終ジャッジ日時 2024-05-03 13:15:32
合計ジャッジ時間 27,411 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 420 ms
136,684 KB
testcase_01 AC 430 ms
136,684 KB
testcase_02 AC 424 ms
137,196 KB
testcase_03 AC 423 ms
136,944 KB
testcase_04 AC 427 ms
136,940 KB
testcase_05 AC 433 ms
136,944 KB
testcase_06 AC 429 ms
136,944 KB
testcase_07 AC 436 ms
136,944 KB
testcase_08 AC 441 ms
136,684 KB
testcase_09 AC 423 ms
136,940 KB
testcase_10 AC 425 ms
136,944 KB
testcase_11 AC 428 ms
136,944 KB
testcase_12 AC 426 ms
136,812 KB
testcase_13 AC 425 ms
136,944 KB
testcase_14 AC 421 ms
136,944 KB
testcase_15 AC 427 ms
137,068 KB
testcase_16 AC 734 ms
147,440 KB
testcase_17 AC 814 ms
149,104 KB
testcase_18 AC 501 ms
141,392 KB
testcase_19 AC 824 ms
148,720 KB
testcase_20 AC 584 ms
143,344 KB
testcase_21 AC 541 ms
142,448 KB
testcase_22 AC 745 ms
147,184 KB
testcase_23 AC 624 ms
143,212 KB
testcase_24 AC 725 ms
146,544 KB
testcase_25 AC 543 ms
142,448 KB
testcase_26 AC 659 ms
144,752 KB
testcase_27 AC 837 ms
149,488 KB
testcase_28 AC 679 ms
145,004 KB
testcase_29 AC 789 ms
148,360 KB
testcase_30 AC 683 ms
145,016 KB
testcase_31 AC 560 ms
143,216 KB
testcase_32 AC 555 ms
143,088 KB
testcase_33 AC 821 ms
149,360 KB
testcase_34 AC 525 ms
142,096 KB
testcase_35 AC 735 ms
146,416 KB
testcase_36 AC 839 ms
150,260 KB
testcase_37 AC 843 ms
149,996 KB
testcase_38 AC 837 ms
149,868 KB
testcase_39 AC 866 ms
150,000 KB
testcase_40 AC 847 ms
149,868 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