結果
問題 |
No.128 お年玉(1)
|
ユーザー |
![]() |
提出日時 | 2020-03-21 15:59:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 112 bytes |
コンパイル時間 | 1,489 ms |
コンパイル使用メモリ | 164,752 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 11:15:03 |
合計ジャッジ時間 | 2,078 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 3 WA * 18 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:5:14: warning: 'y' is used uninitialized [-Wuninitialized] 5 | int y,n;y/=1000; | ~^~~~~~ main.cpp:5:9: note: 'y' was declared here 5 | int y,n;y/=1000; | ^ main.cpp:6:13: warning: 'n' is used uninitialized [-Wuninitialized] 6 | cout<<(y/n)*1000<<endl; | ~~^~~ main.cpp:5:11: note: 'n' was declared here 5 | int y,n;y/=1000; | ^
ソースコード
#include <bits/stdc++.h> using namespace std; signed main(){ int y,n;y/=1000; cout<<(y/n)*1000<<endl; }