結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
chiho_miyako
|
| 提出日時 | 2015-04-07 21:24:07 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 130 ms / 5,000 ms |
| + 145µs | |
| コード長 | 725 bytes |
| 記録 | |
| コンパイル時間 | 1,541 ms |
| コンパイル使用メモリ | 88,008 KB |
| 実行使用メモリ | 49,464 KB |
| 最終ジャッジ日時 | 2026-10-11 03:37:26 |
| 合計ジャッジ時間 | 2,910 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner koko = new Scanner(System.in);
int n = koko.nextInt();
int[] t = new int[n];
String[] s = new String[n];
int[] c = new int[n];
int can = 0;
int cannot = 0;
for(int i=0; i<n; i++){
t[i]=koko.nextInt();
s[i]=koko.next();
c[i]=(int)Math.floor(t[i]*12/1000);
if(c[i]>=s[i].length()){
can=can+s[i].length();
}else{
can=can+c[i];
cannot=cannot+s[i].length()-c[i];
}
}
System.out.println(can+" "+cannot);
}
}
chiho_miyako