結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 00:56:47
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 854 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 130,928 KB
実行使用メモリ 153,008 KB
最終ジャッジ日時 2023-08-16 03:46:39
合計ジャッジ時間 26,502 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 384 ms
132,128 KB
testcase_01 AC 382 ms
134,060 KB
testcase_02 AC 385 ms
132,076 KB
testcase_03 AC 381 ms
134,136 KB
testcase_04 AC 382 ms
133,900 KB
testcase_05 AC 386 ms
134,216 KB
testcase_06 AC 383 ms
134,156 KB
testcase_07 AC 380 ms
134,136 KB
testcase_08 AC 389 ms
132,144 KB
testcase_09 AC 380 ms
133,972 KB
testcase_10 AC 384 ms
133,764 KB
testcase_11 AC 382 ms
134,188 KB
testcase_12 AC 384 ms
134,224 KB
testcase_13 AC 386 ms
133,788 KB
testcase_14 AC 385 ms
131,744 KB
testcase_15 AC 390 ms
134,316 KB
testcase_16 AC 739 ms
146,832 KB
testcase_17 AC 809 ms
150,872 KB
testcase_18 AC 474 ms
133,624 KB
testcase_19 AC 809 ms
150,892 KB
testcase_20 AC 551 ms
138,420 KB
testcase_21 AC 521 ms
136,616 KB
testcase_22 AC 733 ms
146,776 KB
testcase_23 AC 606 ms
140,652 KB
testcase_24 AC 725 ms
146,612 KB
testcase_25 AC 512 ms
134,484 KB
testcase_26 AC 656 ms
142,432 KB
testcase_27 AC 854 ms
151,088 KB
testcase_28 AC 665 ms
142,692 KB
testcase_29 AC 791 ms
148,548 KB
testcase_30 AC 665 ms
142,844 KB
testcase_31 AC 532 ms
136,624 KB
testcase_32 AC 519 ms
136,380 KB
testcase_33 AC 812 ms
150,872 KB
testcase_34 AC 487 ms
136,408 KB
testcase_35 AC 717 ms
146,908 KB
testcase_36 AC 835 ms
153,008 KB
testcase_37 AC 839 ms
152,964 KB
testcase_38 AC 832 ms
152,924 KB
testcase_39 AC 853 ms
152,932 KB
testcase_40 AC 844 ms
152,988 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

my $n = $*IN.get;
my @a = $*IN.get.words;
my $mx = 0;
my $ans = 0;

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

say $ans;
0