結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
kuroi_13
|
| 提出日時 | 2017-04-05 12:17:07 |
| 言語 | Perl (5.42.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 6,272 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-30 03:59:33 |
| 合計ジャッジ時間 | 1,450 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | AC * 7 WA * 26 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict;
use warnings;
my $range = <>;
my @nums = split ' ', <>;
for my $i (0, 1){
for my $j ($i+1..2){
push @nums, $nums[$i]*$nums[$j];
}
}
push @nums, $nums[0]*$nums[1]*$nums[2];
my $ans = 0;
for (@nums[0..2]) {
$ans += int($range / $_);
}
for (@nums[3..6]) {
$ans -= int($range / $_);
}
print $ans;
kuroi_13