結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 00:58:50
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 625 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 130,720 KB
実行使用メモリ 152,860 KB
最終ジャッジ日時 2023-08-16 03:45:22
合計ジャッジ時間 21,539 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 377 ms
132,092 KB
testcase_01 AC 377 ms
132,080 KB
testcase_02 AC 374 ms
131,952 KB
testcase_03 AC 374 ms
132,020 KB
testcase_04 AC 377 ms
132,088 KB
testcase_05 AC 376 ms
132,076 KB
testcase_06 AC 377 ms
132,080 KB
testcase_07 AC 381 ms
132,236 KB
testcase_08 AC 379 ms
132,092 KB
testcase_09 AC 379 ms
131,972 KB
testcase_10 AC 376 ms
131,880 KB
testcase_11 AC 378 ms
132,108 KB
testcase_12 AC 379 ms
132,096 KB
testcase_13 AC 379 ms
132,008 KB
testcase_14 AC 378 ms
132,100 KB
testcase_15 AC 377 ms
134,080 KB
testcase_16 AC 535 ms
146,712 KB
testcase_17 AC 548 ms
148,912 KB
testcase_18 AC 409 ms
134,084 KB
testcase_19 AC 561 ms
150,864 KB
testcase_20 AC 449 ms
136,668 KB
testcase_21 AC 429 ms
134,248 KB
testcase_22 AC 527 ms
146,572 KB
testcase_23 AC 470 ms
140,748 KB
testcase_24 AC 515 ms
146,456 KB
testcase_25 AC 431 ms
134,144 KB
testcase_26 AC 493 ms
140,528 KB
testcase_27 AC 560 ms
152,496 KB
testcase_28 AC 493 ms
142,744 KB
testcase_29 AC 537 ms
148,460 KB
testcase_30 AC 493 ms
142,292 KB
testcase_31 AC 439 ms
136,352 KB
testcase_32 AC 448 ms
136,316 KB
testcase_33 AC 560 ms
150,792 KB
testcase_34 AC 422 ms
136,508 KB
testcase_35 AC 518 ms
146,608 KB
testcase_36 AC 559 ms
152,728 KB
testcase_37 AC 562 ms
152,732 KB
testcase_38 AC 559 ms
152,860 KB
testcase_39 AC 625 ms
152,596 KB
testcase_40 AC 562 ms
152,832 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;
	if $v > $mx {
		$mx = $v;
	} elsif $ans < $v && $v < $mx {
		$ans = $v;
	}
}

say $ans;
0