結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
abc
|
| 提出日時 | 2016-10-23 11:21:39 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 5,000 ms |
| コード長 | 739 bytes |
| 記録 | |
| コンパイル時間 | 3,016 ms |
| コンパイル使用メモリ | 82,060 KB |
| 実行使用メモリ | 46,596 KB |
| 最終ジャッジ日時 | 2026-05-17 22:18:16 |
| 合計ジャッジ時間 | 4,408 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int numSections = sc.nextInt();
int numTypedTotal = 0;
int numNotTypedTotal = 0;
for (int i = 0; i < numSections; i++) {
int timeRestriction = sc.nextInt();
int possibleNumTyping = 12 * timeRestriction / 1000;
String s = sc.next();
int numLetters = s.length();
int numTyped = Math.min(numLetters, possibleNumTyping);
numTypedTotal += numTyped;
numNotTypedTotal += numLetters - numTyped;
}
System.out.println(numTypedTotal + " " + numNotTypedTotal);
}
}
abc