結果

問題 No.128 お年玉(1)
コンテスト
ユーザー tefunamu
提出日時 2015-01-16 23:27:38
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 200 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 156 ms
コンパイル使用メモリ 28,360 KB
最終ジャッジ日時 2026-02-23 18:04:52
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 WA * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%d",&N);
      |     ^~~~~~~~~~~~~~
main.c:10:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |     scanf("%d",&M);
      |     ^~~~~~~~~~~~~~

ソースコード

diff #
raw source code

#include <stdio.h>


int main(int argc, const char * argv[]) {
    
    int N;
    int M;
    
    scanf("%d",&N);
    scanf("%d",&M);
    
    printf("%d\n",N/1000/M*1000);

    
    return 0;
    
}
0