結果
問題 |
No.560 ふしぎなナップサック
|
ユーザー |
![]() |
提出日時 | 2019-03-20 20:08:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 61,196 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-19 00:48:43 |
合計ジャッジ時間 | 1,015 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <iostream> #include <vector> #include <utility> #include <algorithm> #include <string> #include <stack> using ll = long long; #define MOD 1000000007 using namespace std; int main(){ int M, N; cin >> M >> N; double a = 0; for(int i = 0; i < N; i++) { a += 1.0/3; } printf("%.12f\n", M+a); return 0; }