結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
AoiroFukurou
|
| 提出日時 | 2016-11-09 15:08:37 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 630 bytes |
| コンパイル時間 | 5,886 ms |
| コンパイル使用メモリ | 74,440 KB |
| 実行使用メモリ | 57,712 KB |
| 最終ジャッジ日時 | 2024-11-25 05:51:23 |
| 合計ジャッジ時間 | 7,062 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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);
System.out.println(FT);
}
}
AoiroFukurou