結果
| 問題 |
No.508 超ゆとり教育
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-01 10:26:03 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 170 bytes |
| コンパイル時間 | 860 ms |
| コンパイル使用メモリ | 22,912 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 01:47:45 |
| 合計ジャッジ時間 | 1,346 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lld",&n);
| ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main(){
long long n;
scanf("%lld",&n);
n/=3;
n = sqrt(n);
if(n <= 0){printf("0\n");}else{printf("%lld\n",n);}
return 0;
}