結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  mban | 
| 提出日時 | 2016-11-05 12:00:03 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 29 ms / 1,000 ms | 
| コード長 | 861 bytes | 
| コンパイル時間 | 831 ms | 
| コンパイル使用メモリ | 110,764 KB | 
| 実行使用メモリ | 26,860 KB | 
| 最終ジャッジ日時 | 2024-11-25 03:03:51 | 
| 合計ジャッジ時間 | 1,938 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Magatro
{
    static void Main()
    {
        int keiken = 3000000;
        int N = int.Parse(Console.ReadLine());
        int D = 30000;
        Random r = new Random();
        List<int> l = new List<int>();
        for (int i = 0; i < N; i++)
        {
            string[] GD = Console.ReadLine().Split(' ');
            if ((int.Parse(GD[0]) - int.Parse(GD[1]) * D) * 6 >= keiken)
            {
                l.Add(i + 1);
            }
        }
        if (l.Count == 0)
        {
            Console.WriteLine("NO");
        }
        else
        {
            Console.WriteLine("YES");
            for(int i = 0; i < 6; i++)
            {
                Console.WriteLine(l[r.Next(l.Count)]);
            }
        }
    }
}
            
            
            
        