結果
問題 |
No.342 一番ワロタww
|
ユーザー |
![]() |
提出日時 | 2016-02-13 00:08:37 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 477 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 7,808 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-09-22 05:08:42 |
合計ジャッジ時間 | 1,214 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 6 WA * 8 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
#/usr/bin/perl use Encode; use utf8; use List::Util qw/max min/; binmode STDIN, ':encoding(utf8)'; $i = 1; $count = 0; $maxcount = 0; while(<STDIN>) { my $inputtext = $_; my @text = split(/w/, $inputtext); foreach my $tepart(@text) { $count[$i] = length($tepart); if ($count[$i] >= $maxcount) { $maxcount = $count[$i]; } $i++; } foreach my $tepart2(@text) { $telength = length($tepart2); if ($telength == $maxcount) { print "$tepart2\n"; } } }