結果

問題 No.192 合成数
ユーザー MoritaYasuakiMoritaYasuaki
提出日時 2016-05-09 01:37:06
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 01:58:48
合計ジャッジ時間 1,131 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:7:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    7 | main(){
      | ^~~~
main.c: In function ‘main’:
main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%td\n", &N);
      |     ^~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

#define int ptrdiff_t
int N;
main(){
    scanf("%td\n", &N);
    N = N - N % 2;
    printf("%td\n", N);
    return 0;
}
0