結果

問題 No.35 タイパー高橋
ユーザー suiginginsuigingin
提出日時 2015-07-07 23:08:21
言語 Java19
(openjdk 21)
結果
AC  
実行時間 313 ms / 5,000 ms
コード長 461 bytes
コンパイル時間 3,337 ms
コンパイル使用メモリ 74,232 KB
実行使用メモリ 63,448 KB
最終ジャッジ日時 2023-09-22 09:24:21
合計ジャッジ時間 5,368 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 311 ms
63,368 KB
testcase_01 AC 299 ms
63,448 KB
testcase_02 AC 313 ms
62,396 KB
testcase_03 AC 312 ms
63,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No_035 {
	Scanner sc = new Scanner(System.in);

	void run() {
		int N = sc.nextInt();
		int y = 0;
		int n = 0;
		while (N-- > 0) {
			double T = sc.nextDouble();
			double d = 12 * T / 1000;
			int L = sc.next().length();
			if (d >= L) {
				y += L;
			} else {
				y += (int) d;
				n += L - (int) d;
			}
		}
		System.out.println(y + " " + n);

	}

	public static void main(String[] args) {
		new No_035().run();
	}
}
0