結果

問題 No.231 めぐるはめぐる (1)
ユーザー 練習生練習生
提出日時 2015-08-07 16:20:57
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 4,534 ms
コンパイル使用メモリ 72,084 KB
実行使用メモリ 59,520 KB
最終ジャッジ日時 2023-09-25 05:51:31
合計ジャッジ時間 8,967 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 121 ms
56,064 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 123 ms
56,336 KB
testcase_10 AC 123 ms
55,600 KB
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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