結果

問題 No.221 犯罪都市
ユーザー elphe
提出日時 2024-08-01 18:19:16
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 683 ms
コンパイル使用メモリ 71,240 KB
最終ジャッジ日時 2025-02-23 19:41:10
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int N;
    cin >> N;

    cout << fixed << setprecision(10) << (10000 - N) * 100 / static_cast<double>((10000 - N) + N * 99) << '\n';
    return 0;
}
0