版本比较
题解:P11918 [PA 2025] 考试 / Egzamin
正文
增加 2 行删除 2 行
23 行未改动24252627282930313214 行未改动47484950515223 行未改动using namespace std;const int MAXN=5e4+1;const double EPS=1e-12;int n,t;double p[MAXN],ans[MAXN];__gnu_pbds::cc_hash_table<int,double>dp[2];signed main(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);14 行未改动double res=0;F(i,1,n) res=max(res,ans[i]);cout<<fixed<<setprecision(10)<<res;return 0;}```23 行未改动24252627282930313214 行未改动47484950515223 行未改动using namespace std;const int MAXN=5e4+1;const double EPS=1e-12;int n,t;double p[MAXN],ans[MAXN];__gnu_pbds::cc_hash_table<int,double>dp[2];signed main(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);14 行未改动double res=0;F(i,1,n) res=max(res,ans[i]);cout<<fixed<<setprecision(10)<<res;return 0;}```