結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2016-11-11 05:01:57 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 564 bytes |
| コンパイル時間 | 4,216 ms |
| コンパイル使用メモリ | 76,168 KB |
| 実行使用メモリ | 54,120 KB |
| 最終ジャッジ日時 | 2024-11-25 07:47:36 |
| 合計ジャッジ時間 | 3,236 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 4 |
ソースコード
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);
}
}
kohaku_kohaku