結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,840 KB
testcase_01 AC 53 ms
20,704 KB
testcase_02 AC 53 ms
22,728 KB
testcase_03 AC 54 ms
20,644 KB
testcase_04 AC 54 ms
20,716 KB
testcase_05 AC 53 ms
20,780 KB
testcase_06 AC 53 ms
18,592 KB
testcase_07 AC 53 ms
20,636 KB
testcase_08 AC 54 ms
20,688 KB
testcase_09 AC 53 ms
20,776 KB
testcase_10 AC 53 ms
22,780 KB
testcase_11 AC 54 ms
22,648 KB
testcase_12 AC 53 ms
20,608 KB
testcase_13 AC 53 ms
20,712 KB
testcase_14 AC 52 ms
22,756 KB
testcase_15 AC 51 ms
20,696 KB
testcase_16 AC 53 ms
22,708 KB
testcase_17 AC 53 ms
22,684 KB
testcase_18 AC 52 ms
20,692 KB
testcase_19 AC 53 ms
22,716 KB
testcase_20 AC 52 ms
20,756 KB
testcase_21 AC 52 ms
22,724 KB
testcase_22 AC 52 ms
18,732 KB
testcase_23 AC 53 ms
22,708 KB
testcase_24 AC 52 ms
20,596 KB
testcase_25 AC 52 ms
22,740 KB
testcase_26 AC 52 ms
18,692 KB
testcase_27 AC 52 ms
20,652 KB
testcase_28 AC 52 ms
20,656 KB
testcase_29 AC 52 ms
20,604 KB
testcase_30 AC 52 ms
20,696 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 * 2 / 3 ) ? "YES" : "NO" );
    }
}
0