結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
the10hours
|
| 提出日時 | 2015-06-09 16:41:34 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 775 bytes |
| コンパイル時間 | 2,803 ms |
| コンパイル使用メモリ | 107,272 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-12-29 15:07:19 |
| 合計ジャッジ時間 | 4,590 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace yukicoder
{
class yc
{
static void Main()
{
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
double d = (double)a / b;
double f = (double)a / c;
int e,g;
if (a / b < d)
e = (int)d + 1;
else
e = (int)d;
if (a / c < f)
g = (int)f + 1;
else
g = (int)f;
if (e * 2 / 3 >= g)
Console.WriteLine("YES");
else
Console.WriteLine("NO");
}
}
}
the10hours