結果
| 問題 | No.560 ふしぎなナップサック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-31 21:05:58 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 281 ms |
| コンパイル使用メモリ | 70,912 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-10 18:52:50 |
| 合計ジャッジ時間 | 1,737 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}