結果
問題 | No.221 犯罪都市 |
ユーザー |
![]() |
提出日時 | 2015-06-05 22:37:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 572 ms |
コンパイル使用メモリ | 66,712 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 22:02:36 |
合計ジャッジ時間 | 1,184 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:17:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 17 | int n;scanf("%d",&n); | ~~~~~^~~~~~~~~
ソースコード
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <iostream> #include <map> #include <vector> #include <queue> #include <set> using namespace std; //namaega184 int main(){ int n;scanf("%d",&n); n*=100; double ans=1000000-n; printf("%f\n",ans*0.01/(ans*0.01+n*0.99)*100); return 0; }