結果
問題 | No.218 経験値1.5倍 |
ユーザー |
![]() |
提出日時 | 2017-02-06 21:29:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 169 bytes |
コンパイル時間 | 1,697 ms |
コンパイル使用メモリ | 158,732 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-24 08:23:26 |
合計ジャッジ時間 | 2,870 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double*’ [-Wformat=] 6 | scanf("%d%d%d",&a,&b,&c); | ~^ ~~ | | | | int* double* | %le main.cpp:6:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double*’ [-Wformat=] 6 | scanf("%d%d%d",&a,&b,&c); | ~^ ~~ | | | | int* double* | %le main.cpp:6:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double*’ [-Wformat=] 6 | scanf("%d%d%d",&a,&b,&c); | ~^ ~~ | | | | int* double* | %le main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d%d",&a,&b,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ double a,b,c; scanf("%d%d%d",&a,&b,&c); b=ceil(a/b); c=ceil(a/c); puts(c>b*2/3?"NO":"YES"); return 0; }