結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
mits58
|
| 提出日時 | 2016-07-02 15:32:10 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 5,000 ms |
| コード長 | 385 bytes |
| 記録 | |
| コンパイル時間 | 1,605 ms |
| コンパイル使用メモリ | 83,104 KB |
| 実行使用メモリ | 46,492 KB |
| 最終ジャッジ日時 | 2026-04-28 11:37:03 |
| 合計ジャッジ時間 | 3,002 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
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);
}
}
}
mits58