結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
AoiroFukurou
|
| 提出日時 | 2016-11-09 15:10:48 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 240 ms / 5,000 ms |
| コード長 | 616 bytes |
| コンパイル時間 | 3,506 ms |
| コンパイル使用メモリ | 75,924 KB |
| 実行使用メモリ | 59,216 KB |
| 最終ジャッジ日時 | 2024-11-25 05:51:36 |
| 合計ジャッジ時間 | 5,282 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
package yukicoder;
import java.util.Scanner;
public class No_035 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double ToET = 1000.0 / 12.0;//Time of each typeing
int ST = 0;//Succeeded typeing
int FT = 0; //Failed typeing
for(int i = 0; i < N; i++){
int time = sc.nextInt();
String s = sc.nextLine();
int NoT = (int)Math.floor(time / ToET);//Number of times
int VoL = s.length() - 1;//Value of Letter
if(VoL > NoT){
ST += NoT;
FT += (VoL - NoT);
}else{
ST += VoL;
}
}
System.out.println(ST + " " + FT);
}
}
AoiroFukurou