結果
問題 |
No.128 お年玉(1)
|
ユーザー |
|
提出日時 | 2015-04-27 18:10:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 1,373 ms |
コンパイル使用メモリ | 159,016 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-10-01 09:54:55 |
合計ジャッジ時間 | 1,911 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 3 WA * 18 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d",&n,&m); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h> #include <cstdio> using namespace std; int main(){ int n,m; scanf("%d%d",&n,&m); double divi=0; double ds=0; divi=n/1000; ds=divi/m; cout<<ds*1000<<endl; return 0; }