結果
| 問題 |
No.903 太郎の確率
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-24 17:48:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 1,836 ms |
| コンパイル使用メモリ | 192,056 KB |
| 最終ジャッジ日時 | 2025-02-25 06:07:26 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
| 外部呼び出し有り |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:12:28: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | int main() { solve();system("pause"); }
| ~~~~~~^~~~~~~~~
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
void solve() {
ll n;
cin>>n;
cout<<setprecision(10)<<fixed;
cout<<1.0/n<<endl;
}
int main() { solve();system("pause"); }