結果

問題 No.35 タイパー高橋
ユーザー mits58
提出日時 2016-07-02 15:32:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 253 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 2,289 ms
コンパイル使用メモリ 76,784 KB
実行使用メモリ 52,792 KB
最終ジャッジ日時 2024-10-12 00:55:16
合計ジャッジ時間 3,915 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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