結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
koukonko
|
| 提出日時 | 2015-12-07 16:32:45 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 164 ms / 5,000 ms |
| コード長 | 795 bytes |
| コンパイル時間 | 2,342 ms |
| コンパイル使用メモリ | 75,960 KB |
| 実行使用メモリ | 54,380 KB |
| 最終ジャッジ日時 | 2024-09-14 18:20:52 |
| 合計ジャッジ時間 | 3,846 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
try {
final double tp = 1000d / 12d;
int count = Integer.parseInt(buff.readLine());
int acc = 0, miss = 0;
while (count-- > 0) {
String[] str = buff.readLine().split(" ");
int limitTime = Integer.parseInt(str[0]);
int limitChar = (int)(limitTime / tp);
if (limitChar < str[1].length()) {
acc += limitChar;
miss += str[1].length() - limitChar;
} else {
acc += str[1].length();
}
}
System.out.println(acc + " " + miss);
} catch (NumberFormatException e) {
} catch (IOException e) {
}
}
}
koukonko