結果
問題 |
No.218 経験値1.5倍
|
ユーザー |
![]() |
提出日時 | 2017-05-17 17:15:16 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 446 bytes |
コンパイル時間 | 808 ms |
コンパイル使用メモリ | 109,512 KB |
実行使用メモリ | 27,976 KB |
最終ジャッジ日時 | 2024-09-17 21:01:44 |
合計ジャッジ時間 | 2,291 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = int.Parse(Console.ReadLine()); double maxB = 0; double maxC = 0; maxB = Math.Ceiling((double)a / b); maxC = Math.Ceiling((double)a / c); Console.WriteLine(maxB * 2 / 3 == maxC ? "YES" : "NO"); } }