結果
問題 |
No.218 経験値1.5倍
|
ユーザー |
![]() |
提出日時 | 2017-02-06 21:34:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 1,340 ms |
コンパイル使用メモリ | 157,112 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-21 16:00:34 |
合計ジャッジ時間 | 2,662 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 18 |
コンパイルメッセージ
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?"YES":"NO"); return 0; }