結果
問題 | No.35 タイパー高橋 |
ユーザー |
|
提出日時 | 2014-11-25 16:57:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 240 ms / 5,000 ms |
コード長 | 500 bytes |
コンパイル時間 | 4,802 ms |
コンパイル使用メモリ | 80,776 KB |
実行使用メモリ | 46,480 KB |
最終ジャッジ日時 | 2025-01-02 21:49:53 |
合計ジャッジ時間 | 4,993 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
import java.util.Scanner; public class Main35 { public static void main(String[] args) { Main35 p = new Main35(); } public Main35() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int resOk = 0; int resMiss = 0; for(int i=0;i<n;i++){ int t = sc.nextInt(); int s = sc.next().length(); resOk += Math.min(12*t/1000, s); resMiss += Math.max(0, s-12*t/1000); } System.out.println(resOk + " " + resMiss); } }