結果

問題 No.231 めぐるはめぐる (1)
ユーザー 練習生練習生
提出日時 2015-08-07 16:27:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 204 ms / 1,000 ms
コード長 506 bytes
コンパイル時間 3,674 ms
コンパイル使用メモリ 74,568 KB
実行使用メモリ 43,472 KB
最終ジャッジ日時 2024-04-25 12:18:17
合計ジャッジ時間 7,146 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 204 ms
43,308 KB
testcase_01 AC 168 ms
42,036 KB
testcase_02 AC 149 ms
41,388 KB
testcase_03 AC 202 ms
42,852 KB
testcase_04 AC 201 ms
43,472 KB
testcase_05 AC 187 ms
42,512 KB
testcase_06 AC 193 ms
42,652 KB
testcase_07 AC 156 ms
41,772 KB
testcase_08 AC 189 ms
42,288 KB
testcase_09 AC 129 ms
40,860 KB
testcase_10 AC 122 ms
40,684 KB
testcase_11 AC 118 ms
40,252 KB
testcase_12 AC 196 ms
42,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No231 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int clear = 0;
		for(int i = 0; i < n; i++){
			int g = sc.nextInt();
			int d = sc.nextInt();
			if(clear == 0 && (g - 30000 * d) >= 500000){
				clear = i + 1;
			}
		}
		sc.close();
		if(clear == 0){
			System.out.println("NO");						
		}else{
			System.out.println("YES");
			for(int j = 0; j < 6; j++){
				System.out.println(clear);
			}
		}
	}
}
0