結果

問題 No.231 めぐるはめぐる (1)
ユーザー omi_UTomi_UT
提出日時 2017-03-10 21:52:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 683 bytes
コンパイル時間 2,973 ms
コンパイル使用メモリ 72,264 KB
実行使用メモリ 50,560 KB
最終ジャッジ日時 2023-09-06 13:21:23
合計ジャッジ時間 3,366 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
50,560 KB
testcase_01 AC 41 ms
49,216 KB
testcase_02 AC 42 ms
49,292 KB
testcase_03 AC 40 ms
49,360 KB
testcase_04 AC 39 ms
49,124 KB
testcase_05 AC 48 ms
49,784 KB
testcase_06 AC 40 ms
49,152 KB
testcase_07 AC 42 ms
49,612 KB
testcase_08 AC 44 ms
49,672 KB
testcase_09 AC 41 ms
49,260 KB
testcase_10 AC 40 ms
49,268 KB
testcase_11 AC 41 ms
49,224 KB
testcase_12 AC 42 ms
49,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		for(int i=0;i<n;i++){
			String line[] = br.readLine().split(" ");
			if( Integer.parseInt(line[0]) - 30000 * Integer.parseInt(line[1]) >= 500000){
				System.out.println("YES");
				System.out.println(i+1);System.out.println(i+1);System.out.println(i+1);
				System.out.println(i+1);System.out.println(i+1);System.out.println(i+1);
				return;
			}
		}
		System.out.println("NO");
	}
}
0