結果

問題 No.560 ふしぎなナップサック
ユーザー Nafmo2
提出日時 2017-03-31 21:07:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 62,452 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 04:48:12
合計ジャッジ時間 1,264 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cassert>
using namespace std;
#define REP(i,n) for (int i=0;i<(n);i++)
     double N,M,ans;
int main(){
    //ios::sync_with_stdio(false);
    cin>>M>>N;
assert(M<=1000&&M>=0&&N<=1000&&N>=0);
    ans=M+(N/3);
    printf("%.11lf",ans);
}
0