結果

問題 No.192 合成数
ユーザー カルロス
提出日時 2015-09-16 09:51:58
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 01:47:37
合計ジャッジ時間 1,093 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
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);
    if(N%2){
        printf("%d\n", N-1);
    }else{
        printf("%d\n", N);
    }
    return 0;
}
0