結果
| 問題 |
No.560 ふしぎなナップサック
|
| コンテスト | |
| ユーザー |
aim_cpo
|
| 提出日時 | 2018-02-25 16:15:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 238 bytes |
| コンパイル時間 | 1,546 ms |
| コンパイル使用メモリ | 165,304 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 07:39:35 |
| 合計ジャッジ時間 | 2,273 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int n,m;
int main(){
cin>>n>>m;
double now=n;
for(int i=0;i<m;i++){
double sum=0;
sum+=now*2;
sum+=now+1;
sum/=3;
now=sum;
}
printf("%.10f\n",now);
return 0;
}
aim_cpo