結果

問題 No.508 超ゆとり教育
ユーザー akakimidori
提出日時 2017-06-25 13:19:43
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 23,296 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 03:14:54
合計ジャッジ時間 927 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘run’:
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%lld",&n);
      |   ^~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#include<math.h>

void run(void){
  long long int n;
  scanf("%lld",&n);
  if(n<=3){
    printf("1\n");
  } else {
    printf("%d\n",(int)sqrt(n/3));
  }
  return;
}

int main(void){
  run();
  return 0;
}
0