結果

問題 No.311 z in FizzBuzzString
ユーザー umashika
提出日時 2016-01-29 23:47:51
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 21:33:05
合計ジャッジ時間 685 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%lu",&N);
      |   ^~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(){
  unsigned long int N;
  unsigned long int a,b,c;
  unsigned long int ans;
  scanf("%lu",&N);
  a=N/3;b=N/3;c=N/3;
  ans = ((a-c)+(b-3)+c*2)*2;
  printf("%lu\n",ans);
  return 0;
}
0