結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
|
提出日時 | 2017-04-21 11:12:25 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 186 ms / 1,000 ms |
コード長 | 581 bytes |
コンパイル時間 | 2,118 ms |
コンパイル使用メモリ | 74,700 KB |
実行使用メモリ | 43,256 KB |
最終ジャッジ日時 | 2024-07-20 05:00:39 |
合計ジャッジ時間 | 4,678 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int D = Integer.parseInt(sc.next()); boolean f = false; for (int i = 1; i <= D; i++) { if (sc.nextLong() - sc.nextInt() * 30000 >= 500000) { f = true; System.out.println("YES"); System.out.printf("%d\n%d\n%d\n%d\n%d\n%d\n", i, i, i, i, i, i); break; } } if (!f) { System.out.println("NO"); } } }