結果
| 問題 |
No.508 超ゆとり教育
|
| ユーザー |
suwaharu
|
| 提出日時 | 2017-04-28 22:31:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 144 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 29,824 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 18:04:25 |
| 合計ジャッジ時間 | 838 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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("%d",&a);
| ~~~~~^~~~~~~~~
ソースコード
#include<stdio.h>
#include<math.h>
int main(void)
{
int a;
scanf("%d",&a);
if(a/3!=0)
printf("%d\n",(int)sqrt(a/3));
else printf("1\n");
}
suwaharu