結果
問題 | No.218 経験値1.5倍 |
ユーザー |
![]() |
提出日時 | 2016-10-07 22:19:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 773 ms |
コンパイル使用メモリ | 72,596 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-29 15:51:56 |
合計ジャッジ時間 | 1,681 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<vector> #include<map> #include<queue> #include<string> #include<sstream> #include<cmath> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; int ab = a/b; if( a%b != 0 ) ab += 1; int ac = a/c; if( a%c != 0 ) ac += 1; double t = ab*1.0 / ac; if( t >= 1.5 ) cout << "YES" << endl; else cout << "NO" << endl; return 0; }