結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-06 15:23:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 294 bytes |
| コンパイル時間 | 537 ms |
| コンパイル使用メモリ | 35,584 KB |
| 実行使用メモリ | 8,608 KB |
| 最終ジャッジ日時 | 2025-03-06 15:23:48 |
| 合計ジャッジ時間 | 1,949 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lf%lf%lf",&all,&normal,&campaign);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main(){
double all,normal,campaign;
scanf("%lf%lf%lf",&all,&normal,&campaign);
normal = ceil(all / normal);
campaign = ceil(all / campaign);
double enough = normal * 2 / 3;
if(campaign > enough){
printf("NO");
}else{
printf("YES");
}
}
sasa