結果

問題 No.218 経験値1.5倍
ユーザー りあんりあん
提出日時 2015-05-29 22:26:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 2,041 bytes
コンパイル時間 2,320 ms
コンパイル使用メモリ 106,876 KB
実行使用メモリ 22,816 KB
最終ジャッジ日時 2023-08-28 14:04:51
合計ジャッジ時間 5,303 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,712 KB
testcase_01 AC 54 ms
20,724 KB
testcase_02 AC 53 ms
20,636 KB
testcase_03 AC 55 ms
22,752 KB
testcase_04 AC 55 ms
22,816 KB
testcase_05 AC 53 ms
20,768 KB
testcase_06 AC 53 ms
20,720 KB
testcase_07 AC 54 ms
18,664 KB
testcase_08 AC 55 ms
22,664 KB
testcase_09 AC 53 ms
18,716 KB
testcase_10 AC 54 ms
20,828 KB
testcase_11 AC 54 ms
20,760 KB
testcase_12 AC 55 ms
20,632 KB
testcase_13 AC 55 ms
20,812 KB
testcase_14 AC 54 ms
22,664 KB
testcase_15 AC 54 ms
20,712 KB
testcase_16 AC 55 ms
22,748 KB
testcase_17 AC 53 ms
20,612 KB
testcase_18 AC 54 ms
20,664 KB
testcase_19 AC 53 ms
20,680 KB
testcase_20 AC 54 ms
18,652 KB
testcase_21 AC 54 ms
20,628 KB
testcase_22 AC 54 ms
20,636 KB
testcase_23 AC 55 ms
22,716 KB
testcase_24 AC 55 ms
20,764 KB
testcase_25 AC 54 ms
20,864 KB
testcase_26 AC 54 ms
22,768 KB
testcase_27 AC 53 ms
20,672 KB
testcase_28 AC 54 ms
18,780 KB
testcase_29 AC 54 ms
22,808 KB
testcase_30 AC 53 ms
20,724 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.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;

namespace Solver
{
    class Program
    {
        const int M = 1000000007;
        static void Main()
        {
            var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            var sc = new Scan();
            int a = sc.Int;
            int b = sc.Int;
            int c = sc.Int;
            int p = a / b + (a % b > 0 ? 1 : 0);
            int q = a / c + (a % c > 0 ? 1 : 0);
            if (q * 3 <= p * 2)
                sw.WriteLine("YES");
            else
                sw.WriteLine("NO");
            sw.Flush();
        }
    }
    class Scan
    {
        public int Int { get { return int.Parse(Console.ReadLine().Trim()); } }
        public long Long { get { return long.Parse(Console.ReadLine().Trim()); } }
        public string Str { get { return Console.ReadLine().Trim(); } }
        public int[] IntArr { get { return Console.ReadLine().Trim().Split().Select(int.Parse).ToArray(); } }
        public long[] LongArr { get { return Console.ReadLine().Trim().Split().Select(long.Parse).ToArray(); } }
        public double[] DoubleArr { get { return Console.ReadLine().Split().Select(double.Parse).ToArray(); } }
        public string[] StrArr { get { return Console.ReadLine().Trim().Split(); } }
        public List<int> IntList { get { return Console.ReadLine().Trim().Split().Select(int.Parse).ToList(); } }
        public List<long> LongList { get { return Console.ReadLine().Trim().Split().Select(long.Parse).ToList(); } }
        public void Multi(out int a, out int b) { var arr = IntArr; a = arr[0]; b = arr[1]; }
        public void Multi(out int a, out int b, out int c) { var arr = IntArr; a = arr[0]; b = arr[1]; c = arr[2]; }
        public void Multi(out long a, out long b) { var arr = LongArr; a = arr[0]; b = arr[1]; }
        public void Multi(out string a, out string b) { var arr = StrArr; a = arr[0]; b = arr[1]; }
    }
}
0