結果
| 問題 |
No.508 超ゆとり教育
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-01 10:26:27 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 169 bytes |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 23,168 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 01:48:07 |
| 合計ジャッジ時間 | 993 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
コンパイルメッセージ
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("1\n");}else{printf("%lld\n",n);}
return 0;
}