結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | shinwisteria |
提出日時 | 2018-03-15 19:33:22 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 511 bytes |
コンパイル時間 | 5,103 ms |
コンパイル使用メモリ | 72,460 KB |
実行使用メモリ | 59,072 KB |
最終ジャッジ日時 | 2023-08-22 22:35:20 |
合計ジャッジ時間 | 7,702 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 195 ms
58,356 KB |
testcase_01 | AC | 154 ms
55,980 KB |
testcase_02 | AC | 142 ms
55,604 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 192 ms
56,096 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 125 ms
55,732 KB |
testcase_10 | AC | 126 ms
55,628 KB |
testcase_11 | AC | 125 ms
55,640 KB |
testcase_12 | AC | 188 ms
55,928 KB |
ソースコード
package m.shin; import java.util.Scanner; public class Con231 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt() , max = 0; int[] gd = new int[n]; for(int i = 0;i < n;i++){ gd[i] = s.nextInt() - 30000 * s.nextInt(); if(gd[max] < gd[i]){ max = i; } } s.close(); if(gd[n-1] * 6 >= 3000000){ System.out.println("YES"); for(int i = 0;i < 6;i++){ System.out.println(max+1); } }else{ System.out.println("NO"); } } }