結果

問題 No.35 タイパー高橋
ユーザー ねずねず
提出日時 2018-01-29 11:19:59
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 12,008 KB
実行使用メモリ 12,292 KB
最終ジャッジ日時 2023-08-28 15:18:34
合計ジャッジ時間 590 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,292 KB
testcase_01 AC 8 ms
12,200 KB
testcase_02 AC 8 ms
12,124 KB
testcase_03 AC 8 ms
12,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$ac = $sum = 0;
for ($i = 0; $i < $n; $i++) {
	list($t, $s) = explode(' ', trim(fgets(STDIN)));
	$ac += min(strlen($s), intval(12 * $t / 1000));
	$sum += strlen($s);
}
echo $ac . ' ' . ($sum - $ac);
?>
0