結果
問題 | No.35 タイパー高橋 |
ユーザー | takeya_okino |
提出日時 | 2017-06-12 08:46:54 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 243 ms / 5,000 ms |
コード長 | 468 bytes |
コンパイル時間 | 2,310 ms |
コンパイル使用メモリ | 85,704 KB |
実行使用メモリ | 62,364 KB |
最終ジャッジ日時 | 2023-10-24 21:30:10 |
合計ジャッジ時間 | 3,947 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 232 ms
61,200 KB |
testcase_01 | AC | 235 ms
61,840 KB |
testcase_02 | AC | 236 ms
61,504 KB |
testcase_03 | AC | 243 ms
62,364 KB |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int type = 0; int nontype = 0; for(int i = 0; i < N; i++) { int t = sc.nextInt(); String s = sc.next(); int len = s.length(); int a = (12 * t) / 1000; a = Math.min(a, len); type += a; nontype += (len - a); } System.out.println(type + " " + nontype); } }