結果
| 問題 | No.146 試験監督(1) |
| コンテスト | |
| ユーザー |
togaerror
|
| 提出日時 | 2015-03-15 16:45:47 |
| 言語 | Perl (5.42.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 7,844 KB |
| 実行使用メモリ | 7,840 KB |
| 最終ジャッジ日時 | 2026-03-18 04:53:56 |
| 合計ジャッジ時間 | 774 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
#!/usr/bin/perl
use strict;
use warnings;
my $n = <>;
my $total = 0;
for(my $i = 0; $i < $n; $i++) {
my ($c, $d) = split / /, <>;
my $num = int((($c +1) / 2)) * $d;
$num %= (10**9 + 7);
$total += $num;
$total %= (10**9 + 7);
}
$total %= (10**9 + 7);
print "$total\n";
exit;
togaerror