結果
問題 | No.903 太郎の確率 |
ユーザー | LayCurse |
提出日時 | 2019-10-11 21:35:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 404 bytes |
コンパイル時間 | 2,539 ms |
コンパイル使用メモリ | 208,812 KB |
最終ジャッジ日時 | 2025-01-07 21:32:38 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
main.cpp: In function ‘void rd(double&)’: main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lf",&x); | ~~~~~^~~~~~~~~~
ソースコード
#pragma GCC optimize ("Ofast") #include<bits/stdc++.h> using namespace std; inline void rd(double &x){ scanf("%lf",&x); } inline void wt_L(char a){ putchar_unlocked(a); } inline void wt_L(double x){ printf("%.15f",x); } int main(){ double N; rd(N); wt_L(1/N); wt_L('\n'); return 0; } // cLay varsion 20191006-1 // --- original code --- // { // double N; // rd(N); // wt(1/N); // }