結果
問題 | No.35 タイパー高橋 |
ユーザー | Grenache |
提出日時 | 2015-09-22 23:34:49 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 212 ms / 5,000 ms |
コード長 | 502 bytes |
コンパイル時間 | 3,727 ms |
コンパイル使用メモリ | 72,408 KB |
実行使用メモリ | 58,856 KB |
最終ジャッジ日時 | 2023-09-26 14:30:41 |
合計ジャッジ時間 | 4,959 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 212 ms
58,452 KB |
testcase_01 | AC | 207 ms
57,868 KB |
testcase_02 | AC | 212 ms
58,432 KB |
testcase_03 | AC | 211 ms
58,856 KB |
ソースコード
import java.util.Scanner; public class Main_yukicoder35 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ret = 0; int sn = 0; for (int i = 0; i < n; i++) { int t = sc.nextInt(); int s = sc.next().length(); ret += Math.min(s, 12 * t / 1000); sn += s; } System.out.printf("%d %d\n", ret, sn - ret); sc.close(); } }