結果

問題 No.231 めぐるはめぐる (1)
ユーザー mencottonmencotton
提出日時 2018-02-19 16:14:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 1,000 ms
コード長 706 bytes
コンパイル時間 2,029 ms
コンパイル使用メモリ 106,736 KB
実行使用メモリ 25,712 KB
最終ジャッジ日時 2023-09-22 07:56:56
合計ジャッジ時間 3,896 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,604 KB
testcase_01 AC 59 ms
23,724 KB
testcase_02 AC 59 ms
25,712 KB
testcase_03 AC 59 ms
23,708 KB
testcase_04 AC 60 ms
21,576 KB
testcase_05 AC 59 ms
21,652 KB
testcase_06 AC 59 ms
19,480 KB
testcase_07 AC 60 ms
21,648 KB
testcase_08 AC 61 ms
23,756 KB
testcase_09 AC 62 ms
21,736 KB
testcase_10 AC 60 ms
21,652 KB
testcase_11 AC 57 ms
21,656 KB
testcase_12 AC 60 ms
21,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;

namespace _231
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            bool found = false;
            for (int i = 0; i < n && !found; i++)
            {
                int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
                int now = x[0] - 30000 * x[1];
                if (now >= 500000)
                {
                    found = true;
                    Console.WriteLine("YES");
                    for (int j = 0; j < 6; j++) Console.WriteLine(i + 1);
                }
            }
            if (!found) Console.WriteLine("NO");
        }
    }
}
0