結果
問題 | No.508 超ゆとり教育 |
ユーザー |
![]() |
提出日時 | 2017-04-28 22:35:25 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 141 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 30,976 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 18:08:04 |
合計ジャッジ時間 | 871 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] 6 | scanf("%d",&n); | ~^ ~~ | | | | | long int* | int* | %ld main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d",&n); | ~~~~~^~~~~~~~~
ソースコード
#include<stdio.h>#include<math.h>#define PI_ 3int main(void){long n;scanf("%d",&n);printf("%d\n",(int)pow(n/PI_,0.5));return 0;}