結果

問題 No.218 経験値1.5倍
ユーザー rtomp
提出日時 2016-07-29 16:04:50
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 975 ms
コンパイル使用メモリ 103,168 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-11-06 18:24:58
合計ジャッジ時間 2,598 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
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( string[] args )
    {
        int needExp = int.Parse(Console.ReadLine());
        int nmlExp = int.Parse(Console.ReadLine());
        int cmpExp = int.Parse(Console.ReadLine());
                    
        int cmpNeedItems = ( needExp / cmpExp );
        if (( needExp % cmpExp ) > 0)
        {
            cmpNeedItems++;
        }
        
        Console.WriteLine( cmpNeedItems <= ( ( needExp / nmlExp ) * 2 / 3 ) ? "YES" : "NO");
    }
}
0