結果
問題 | No.35 タイパー高橋 |
ユーザー | dazy |
提出日時 | 2016-09-08 22:57:57 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 256 ms / 5,000 ms |
コード長 | 687 bytes |
コンパイル時間 | 3,413 ms |
コンパイル使用メモリ | 76,216 KB |
実行使用メモリ | 57,936 KB |
最終ジャッジ日時 | 2024-04-27 18:05:01 |
合計ジャッジ時間 | 5,063 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 251 ms
57,308 KB |
testcase_01 | AC | 237 ms
57,716 KB |
testcase_02 | AC | 256 ms
57,616 KB |
testcase_03 | AC | 242 ms
57,936 KB |
ソースコード
import java.util.*; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); if (N < 1||N > 1000) System.exit(1); int type = 0; int miss = 0; int T, S; for (int i = 0; i < N; i++) { T = scan.nextInt(); S = scan.next().length(); if (T < 1||T > 30000||S < 1||S > 100) System.exit(1); int tmptype = 12*T / 1000; if (S < tmptype) type += S; else { type += tmptype; miss += S - tmptype; } } System.out.println(type+" "+miss); } }