結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-05-16 18:52:54 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 449 bytes | 
| コンパイル時間 | 12,869 ms | 
| コンパイル使用メモリ | 400,428 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-20 11:01:01 | 
| 合計ジャッジ時間 | 14,042 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
use std::io::Read;
fn main() {
	let mut s = String::new();
	std::io::stdin().read_to_string(&mut s).ok();
	let n: Vec<u64> =
		s.split_whitespace().skip(1).flat_map(str::parse).collect();
	if n.chunks(2).all(|x| x[0] - 30000 * x[1] < 500000) {
		println!("NO");
		return;
	}
	println!("YES");
	let a = n
		.chunks(2)
		.enumerate()
		.filter(|x| x.1[0] - 30000 * x.1[1] >= 500000)
		.max();
	(0..6).for_each(|_| println!("{}", a.unwrap().0 + 1))
}
            
            
            
        