結果

問題 No.83 最大マッチング
ユーザー カルロス
提出日時 2015-08-31 09:46:33
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 16:46:33
合計ジャッジ時間 650 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%d", &N);
      |     ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void){
    int N;
    scanf("%d", &N);
    while(N>=6){
        N -= 6;
        printf("9");
    }
    if(N==5){
        printf("71\n");
    }else if(N==4){
        printf("11\n");
    }else if(N==3){
        printf("7\n");
    }else if(N==2){
        printf("1\n");
    }else{
        printf("\n");
    }
    return 0;
}
0