結果

問題 No.35 タイパー高橋
ユーザー mits58mits58
提出日時 2016-07-02 15:32:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 218 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 1,993 ms
コンパイル使用メモリ 76,296 KB
実行使用メモリ 58,588 KB
最終ジャッジ日時 2024-04-20 05:52:01
合計ジャッジ時間 3,421 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 206 ms
57,820 KB
testcase_01 AC 207 ms
58,376 KB
testcase_02 AC 208 ms
58,024 KB
testcase_03 AC 218 ms
58,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			int n=sc.nextInt();
			int cor=0,miss=0;
			for(int i=0;i<n;i++){
				int t=sc.nextInt();
				int s=(sc.next()).length();
				cor+=Math.min(s,3*t/250);
				miss+=Math.max(0,s-3*t/250);
			}
			System.out.println(cor+" "+miss);
		}
	}
}
0