結果

問題 No.128 お年玉(1)
ユーザー focus
提出日時 2018-01-23 22:27:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 57,584 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-10-01 10:45:29
合計ジャッジ時間 1,378 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 3 WA * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:9: warning: ‘N’ is used uninitialized [-Wuninitialized]
    8 |     ans = N/M;
      |     ~~~~^~~~~
main.cpp:8:9: warning: ‘M’ is used uninitialized [-Wuninitialized]

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
using namespace std;
int main(){
    unsigned long long N,M,ans;
    ans = N/M;
    ans/=1000;
    ans*=1000;
    cout << ans;
    return 0;
}

0