結果

問題 No.83 最大マッチング
ユーザー akakimidori
提出日時 2017-06-25 13:34:56
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-04 08:31:29
合計ジャッジ時間 657 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘run’:
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |   scanf("%d",&n);
      |   ^~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>

void run(void){
  int n;
  scanf("%d",&n);
  while(n>3){
    putchar('1');
    n-=2;
  }
  putchar(n==3?'7':'1');
  putchar('\n');
  return;
}

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