結果

問題 No.231 めぐるはめぐる (1)
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-09-19 00:27:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 671 bytes
コンパイル時間 2,202 ms
コンパイル使用メモリ 105,144 KB
実行使用メモリ 23,712 KB
最終ジャッジ日時 2023-09-25 10:01:10
合計ジャッジ時間 4,011 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,740 KB
testcase_01 AC 63 ms
21,760 KB
testcase_02 AC 61 ms
21,652 KB
testcase_03 AC 63 ms
21,668 KB
testcase_04 AC 63 ms
21,788 KB
testcase_05 AC 61 ms
23,636 KB
testcase_06 AC 64 ms
19,744 KB
testcase_07 AC 63 ms
21,632 KB
testcase_08 AC 64 ms
21,768 KB
testcase_09 AC 62 ms
21,836 KB
testcase_10 AC 62 ms
21,652 KB
testcase_11 AC 60 ms
21,664 KB
testcase_12 AC 63 ms
23,712 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;

class No231{
    static void Main(){
        var num=Int32.Parse(Console.ReadLine());
        var list=new List<int>();
        string ans="YES";
        for(int i=0;i<num;++i){
            var line=Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).ToArray();
            list.Add(line[0]-line[1]*30000);
        }
        var max=list.Max();
        if(max<500000)Console.WriteLine("NO");
        else {
            Console.WriteLine("YES");
            var index=list.IndexOf(max)+1;
            for(int i=0;i<6;++i){
                    Console.WriteLine(index);
            }
        }
    }
}
0