結果

問題 No.341 沈黙の期間
ユーザー togaerrortogaerror
提出日時 2016-04-02 12:48:57
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 427 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 135,472 KB
実行使用メモリ 136,976 KB
最終ジャッジ日時 2024-05-03 13:13:06
合計ジャッジ時間 7,288 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 419 ms
136,596 KB
testcase_01 AC 414 ms
136,848 KB
testcase_02 AC 416 ms
136,204 KB
testcase_03 AC 419 ms
136,852 KB
testcase_04 AC 415 ms
136,852 KB
testcase_05 AC 412 ms
136,592 KB
testcase_06 AC 415 ms
136,468 KB
testcase_07 AC 413 ms
136,848 KB
testcase_08 AC 426 ms
136,716 KB
testcase_09 AC 427 ms
136,848 KB
testcase_10 AC 420 ms
136,468 KB
testcase_11 AC 414 ms
136,720 KB
testcase_12 AC 422 ms
136,976 KB
testcase_13 AC 416 ms
136,596 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

use v6;

my $str = get();
chomp $str;
my @arr = $str.split('');

my $keep = 0;
my $count = 0;

for @arr -> $arr {
	if $arr eq '…' {
		$count++;
	} else {
		if $keep < $count {
			$keep = $count;
		}
		$count = 0;
	}
}
say $keep;
exit;
0