結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
nCk_cv
|
| 提出日時 | 2015-08-02 14:33:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 641 bytes |
| コンパイル時間 | 515 ms |
| コンパイル使用メモリ | 52,616 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-29 15:18:50 |
| 合計ジャッジ時間 | 1,468 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:19:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
19 | scanf("%d %d %d",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>
#include <climits>
#include <vector>
#include <algorithm>
#include <queue>
#include <stdio.h>
#include <string>
#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()
#define INF 99999999
using namespace std;
int main() {
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int as = ((a%b)!=0?1:0) + (a/b);
int bs = ((a%c)!=0?1:0) + (a/c);
if(as * 2 / 3.0 >= bs) {
printf("YES\n");
}
else {
printf("NO\n");
}
}
nCk_cv