結果

問題 No.218 経験値1.5倍
ユーザー rtomprtomp
提出日時 2016-07-29 17:27:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 805 bytes
コンパイル時間 1,931 ms
コンパイル使用メモリ 99,584 KB
実行使用メモリ 22,740 KB
最終ジャッジ日時 2023-08-28 14:24:40
合計ジャッジ時間 4,755 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,748 KB
testcase_01 AC 52 ms
20,756 KB
testcase_02 AC 53 ms
18,560 KB
testcase_03 AC 52 ms
20,744 KB
testcase_04 AC 53 ms
20,764 KB
testcase_05 AC 52 ms
20,672 KB
testcase_06 AC 52 ms
20,684 KB
testcase_07 AC 52 ms
18,644 KB
testcase_08 AC 52 ms
20,732 KB
testcase_09 AC 51 ms
20,680 KB
testcase_10 AC 52 ms
20,844 KB
testcase_11 AC 53 ms
22,664 KB
testcase_12 AC 54 ms
22,732 KB
testcase_13 AC 53 ms
20,728 KB
testcase_14 AC 54 ms
20,700 KB
testcase_15 AC 52 ms
18,704 KB
testcase_16 AC 53 ms
22,732 KB
testcase_17 AC 52 ms
22,724 KB
testcase_18 AC 52 ms
22,740 KB
testcase_19 AC 51 ms
22,712 KB
testcase_20 AC 54 ms
20,676 KB
testcase_21 AC 52 ms
20,724 KB
testcase_22 AC 53 ms
20,680 KB
testcase_23 AC 52 ms
20,680 KB
testcase_24 AC 53 ms
22,732 KB
testcase_25 AC 53 ms
20,616 KB
testcase_26 AC 52 ms
20,676 KB
testcase_27 AC 53 ms
20,676 KB
testcase_28 AC 54 ms
20,796 KB
testcase_29 AC 53 ms
20,676 KB
testcase_30 AC 53 ms
20,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Test
{
	static void Main()
    {
        int needExp = int.Parse(Console.ReadLine());
        int nmlExp = int.Parse(Console.ReadLine());
        int cmpExp = int.Parse(Console.ReadLine());
                    
        int nmlNeedItems = ( needExp / nmlExp );
        if ( (needExp % nmlExp) > 0 ) 
        {
            nmlNeedItems++; // 余りが出たら繰り上げ
        }

        int cmpNeedItems = ( needExp / cmpExp );
        if ( (needExp % cmpExp) > 0 )
        {
            cmpNeedItems++; // 余りが出たら繰り上げ
        }
        // 通常時に必要なアイテム数の2/3以下であれば"YES"、それ以外は"NO"で出力
        Console.WriteLine( cmpNeedItems <= ( nmlNeedItems * 0.6666666666666666666666666667 ) ? "YES" : "NO" );
    }
}
0