結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-07-02 19:08:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 252 bytes |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 31,872 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-29 16:06:11 |
| 合計ジャッジ時間 | 1,418 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main(){
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d%d%d",&A,&B,&C);
| ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<math.h>
main(){
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
int x = ceil(A/(double)B);
int y = ceil(A/(double)C);
if(x >= (double)(y*3.0/2.0)){
printf("YES\n");
}else{
printf("NO\n");
}
}
Bantako