結果
問題 | No.508 超ゆとり教育 |
ユーザー |
![]() |
提出日時 | 2017-04-28 22:32:24 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 30,464 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 18:05:12 |
合計ジャッジ時間 | 818 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 1 |
コンパイルメッセージ
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",&n); | ~~~~~^~~~~~~~~~
ソースコード
#include<stdio.h>#include<math.h>#define PI_ 3int main(void){double n;scanf("%lf",&n);printf("%d\n",(int)pow(n/PI_,0.5));return 0;}