結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-07-14 09:06:16 |
| 言語 | PHP (843.2) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 5,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 1,240 ms |
| コンパイル使用メモリ | 31,884 KB |
| 実行使用メモリ | 31,356 KB |
| 最終ジャッジ日時 | 2024-10-07 20:36:07 |
| 合計ジャッジ時間 | 1,516 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$N = trim(fgets(STDIN));
$type = 0;
$non_type = 0;
for($i = 0; $i < $N; $i++) {
$array = explode(" ", trim(fgets(STDIN)));
$t = $array[0];
$s = strlen($array[1]);
$n = (min($s, intdiv(12 * $t, 1000)));
$type += $n;
$non_type += ($s - $n);
}
print($type . " " . $non_type);
?>
takeya_okino