結果

問題 No.231 めぐるはめぐる (1)
ユーザー 練習生練習生
提出日時 2015-08-07 16:25:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 182 ms / 1,000 ms
コード長 505 bytes
コンパイル時間 3,861 ms
コンパイル使用メモリ 75,240 KB
実行使用メモリ 43,260 KB
最終ジャッジ日時 2024-04-25 12:18:06
合計ジャッジ時間 5,808 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 176 ms
43,260 KB
testcase_01 AC 150 ms
41,440 KB
testcase_02 AC 144 ms
41,368 KB
testcase_03 AC 182 ms
42,932 KB
testcase_04 AC 179 ms
43,248 KB
testcase_05 AC 150 ms
42,536 KB
testcase_06 AC 173 ms
42,728 KB
testcase_07 AC 138 ms
41,744 KB
testcase_08 AC 166 ms
42,588 KB
testcase_09 AC 106 ms
40,400 KB
testcase_10 AC 114 ms
41,380 KB
testcase_11 AC 114 ms
41,256 KB
testcase_12 AC 176 ms
42,468 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