結果
問題 | No.35 タイパー高橋 |
ユーザー |
![]() |
提出日時 | 2015-04-24 21:42:17 |
言語 | Java19 (openjdk 19.0.1) |
結果 |
AC
|
実行時間 | 260 ms / 5,000 ms |
コード長 | 476 bytes |
コンパイル時間 | 3,443 ms |
コンパイル使用メモリ | 73,812 KB |
実行使用メモリ | 61,292 KB |
最終ジャッジ日時 | 2023-09-18 09:35:22 |
合計ジャッジ時間 | 5,163 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 244 ms
60,280 KB |
testcase_01 | AC | 255 ms
61,292 KB |
testcase_02 | AC | 260 ms
61,208 KB |
testcase_03 | AC | 259 ms
60,952 KB |
ソースコード
import java.util.*; public class Yukicoder_35{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int count = 0; int miss = 0; for(int i=0;i<N;i++){ int T = stdIn.nextInt(); String str = stdIn.next(); int letter = str.length(); for(int j=1;j<=letter;j++){ if((double)T>=(double)j*83.333333){ count++; } else{ miss++; } } } System.out.println(count+" "+miss); } }