結果
問題 | No.35 タイパー高橋 |
ユーザー | kohaku_kohaku |
提出日時 | 2016-11-11 05:01:57 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 2,318 ms |
コンパイル使用メモリ | 74,012 KB |
実行使用メモリ | 56,092 KB |
最終ジャッジ日時 | 2023-08-16 18:17:24 |
合計ジャッジ時間 | 3,539 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int suc = 0; int miss = 0; for(int i=0; i<N; i++){ int a = sc.nextInt(); int type = 12*a/1000; int b = sc.nextInt(); if(type>=b){ suc = suc + b; }else{ suc = suc + type; miss = miss + (b-type); } } System.out.println(suc + " " + miss); } }