結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-21 23:17:49 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 570 bytes |
| コンパイル時間 | 2,100 ms |
| コンパイル使用メモリ | 73,992 KB |
| 実行使用メモリ | 54,572 KB |
| 最終ジャッジ日時 | 2024-07-18 08:49:06 |
| 合計ジャッジ時間 | 5,900 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 8 WA * 3 |
ソースコード
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt(),g,d,m=0,t=0;
for(int i=0;i<n;++i){
g=sc.nextInt();
d=sc.nextInt();
if(g-30000*d>m){
m=g-30000*d;
t=i+1;
}
}
sc.close();
if(3000000>m*6)System.out.print("NO");
else{
System.out.println("YES");
for(int i=0;i<6;++i)System.out.println(t);
}
}
}