結果
問題 | No.560 ふしぎなナップサック |
ユーザー |
|
提出日時 | 2017-03-31 21:05:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 63,236 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 04:47:58 |
合計ジャッジ時間 | 1,307 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 10 RE * 2 |
ソースコード
#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>=1&&N<=1000&&N>=1);ans=M+(N/3);printf("%.11lf",ans);}