結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-21 11:12:25 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 581 bytes |
| 記録 | |
| コンパイル時間 | 1,540 ms |
| コンパイル使用メモリ | 83,004 KB |
| 実行使用メモリ | 129,224 KB |
| 最終ジャッジ日時 | 2026-04-02 20:46:22 |
| 合計ジャッジ時間 | 3,101 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 MLE * 1 |
ソースコード
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");
}
}
}