結果
| 問題 | No.146 試験監督(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-03-16 00:13:54 |
| 言語 | PHP (8.5.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 38,136 KB |
| 実行使用メモリ | 38,252 KB |
| 最終ジャッジ日時 | 2026-03-18 05:08:14 |
| 合計ジャッジ時間 | 773 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
コンパイルメッセージ
PHP Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 8 Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 8 No syntax errors detected in Main.php
ソースコード
<?php
$N=trim(fgets(STDIN));
$ans=0;
$num=1e9+7;
for($i=0;$i<$N;$i++){
list($c,$d)= explode(' ', trim(fgets(STDIN)));
$c=((integer)(($c+1)/2))%$num;
$d%=$num;
$ans+=$c*$d%$num;
$ans%=$num;
}
echo $ans.PHP_EOL;