結果

問題 No.280 歯車の問題(1)
ユーザー akakimidori
提出日時 2017-04-27 15:08:14
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 266 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 19,968 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 14:48:41
合計ジャッジ時間 2,593 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘run’:
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |   scanf("%d",&n);
      |   ^~~~~~~~~~~~~~
main.c:9:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   scanf("%lld",&z1);
      |   ^~~~~~~~~~~~~~~~~
main.c:13:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |     scanf("%lld",&zn);
      |     ^~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>

typedef long long int ln;

void run(void){
  int n;
  scanf("%d",&n);
  ln z1;
  scanf("%lld",&z1);
  ln zn;
  int i;
  for(i=1;i<n;i++){
    scanf("%lld",&zn);
  }
  printf("%lld/%lld\n",zn,z1);
  return;
}

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