結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
HEGO55
|
| 提出日時 | 2017-05-21 00:35:46 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 594 bytes |
| コンパイル時間 | 2,304 ms |
| コンパイル使用メモリ | 76,640 KB |
| 実行使用メモリ | 45,724 KB |
| 最終ジャッジ日時 | 2024-09-19 00:33:17 |
| 合計ジャッジ時間 | 3,345 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 3 |
ソースコード
import java.util.*;
class No35{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double[] second = new double[N];
String[] str = new String[N];
long strLength = 0;
long actualStr = 0;
for(int i=0; i<N; i++){
second[i] = sc.nextInt();
str[i] = sc.next();
strLength += str[i].length();
}
for(int j=0; j<N; j++){
if(second[j]>1000){
actualStr += str[j].length();
continue;
}
actualStr += Math.floor(12*(second[j]/1000));
}
System.out.println(actualStr+" "+(strLength - actualStr));
}
}
HEGO55