結果
問題 | No.35 タイパー高橋 |
ユーザー | 37zigen |
提出日時 | 2016-04-01 15:44:58 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 254 ms / 5,000 ms |
コード長 | 470 bytes |
コンパイル時間 | 2,209 ms |
コンパイル使用メモリ | 76,892 KB |
実行使用メモリ | 58,508 KB |
最終ジャッジ日時 | 2024-04-10 07:05:46 |
合計ジャッジ時間 | 4,106 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 245 ms
57,824 KB |
testcase_01 | AC | 248 ms
58,408 KB |
testcase_02 | AC | 254 ms
58,508 KB |
testcase_03 | AC | 251 ms
57,968 KB |
ソースコード
package yukicoder035; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int correct=0; int erude=0; for(int i=0;i<n;i++){ double t=sc.nextInt(); String s=sc.next(); int c=(int)(12*t)/1000; if(c<s.length()){ correct+=c; erude+=s.length()-c; }else if(c>=s.length()){ correct+=s.length(); } } System.out.println(correct+" "+erude); } }