版本比较
CSP-S 2024 JS 迷惑行为大赏
正文
增加 22 行删除 22 行
170 行未改动全部展开17117217317417517617717817987 行未改动267268269270271272273274275375 行未改动全部展开651652653654655656657658659615 行未改动全部展开12751276127712781279128012811282128316 行未改动13001301130213031304130513061307130882 行未改动13911392139313941395139613971398139914001401140214031404140514061407140814091410223 行未改动全部展开163416351636163716381639164016411642182 行未改动全部展开18251826182718281829183018311832183390 行未改动192419251926192719281929193019311932286 行未改动全部展开221922202221222222232224222522262227404 行未改动全部展开2632263326342635263626372638263926402641264226432644195 行未改动全部展开170 行未改动全部展开```## JS-S00048[arena.cpp/color.cpp/detect.cpp/duel.cpp] **作者本人 & 拼写大师**```cpp/*maybe sonner or later, I can fall in love with a leaf87 行未改动3: 14: 85: 2, 4dp[i][j] -> pos i with val=j,dp[i][j]=max {k=1,2...,i-1}{ dp[k][j] + same(k+1,i-1) }-> O(N^2 M) =35pts375 行未改动全部展开int fuck(int x,int n){int l = 1;int r = n;int ret;while(l <= r){int mid = (l + r) / 2;if(b[mid] > x){r = mid - 1;615 行未改动全部展开// The functions contained in this file are pretty dummy// and are included only as a placeholder. Nevertheless,// they *will* get included in the shared library if you// don't remove them :)//// Obviously, you 'll have to write yourself the super-duper// functions to include in the resulting library...// Also, it's not necessary to write every function in this file.// Feel free to add more files in this project. They will be16 行未改动// A function always returning zeroint SampleFunction2(){// insert code herereturn 0;}}```82 行未改动// 想知道最多可以关闭多少测速仪。// 提示:n 很大,本题的“提示”部分提供了有关加速度的公式。#include<i'll ak ioi>qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqToT but and i fail in CSP-S```## JS-S00620223 行未改动全部展开float DistanceToGo = car.v * TimeToDec + 0.5 * car.a * Pow2(TimeToDec);int TargetPos = DistanceToGo + car.d;//Does not need to SiSheWuRu//Second Stepif(TargetPos >= L) return m;int Id = lower_bound(MonitorPos + 1,MonitorPos + m + 1,TargetPos + 1) - MonitorPos;return Id;}```182 行未改动全部展开// In fact, I have no idea how to caculate the second number// I've tried a n^3 method...but that clearly won't work =(// I won't be trying n,m<=3000, instead, I use out another code ( n,m<=20 or a>=0 )// So... I would still get 60pts```[color.cpp] **20 分:我免费了**90 行未改动```【拼音翻译:nitian -> 逆天】[color.cpp] **这么树形 dp 啊**```cpp/*286 行未改动全部展开[arena.cpp/color.cpp/detect.cpp/duel.cpp] **bless me**```cpp//Good luck CSP-S2 2024//RP++//Wel and doowzs blesses me.```404 行未改动全部展开[arena.cpp/color.cpp/detect.cpp/duel.cpp] **你是懂诈骗的**```//freopen//freopen//freopen//freopen//freopen//freopen luogu uid 772909```## JS-S01698195 行未改动全部展开170 行未改动全部展开17117217317417517617717817987 行未改动267268269270271272273274275375 行未改动全部展开651652653654655656657658659615 行未改动全部展开12751276127712781279128012811282128316 行未改动13001301130213031304130513061307130882 行未改动13911392139313941395139613971398139914001401140214031404140514061407140814091410223 行未改动全部展开163416351636163716381639164016411642182 行未改动全部展开18251826182718281829183018311832183390 行未改动192419251926192719281929193019311932286 行未改动全部展开221922202221222222232224222522262227404 行未改动全部展开2632263326342635263626372638263926402641264226432644195 行未改动全部展开170 行未改动全部展开```## JS-S00048[arena.cpp/color.cpp/detect.cpp/duel.cpp] **作者本人 & 拼写大师**```cpp/*maybe sonner or later, I can fall in love with a leaf87 行未改动3: 14: 85: 2, 4dp[i][j] -> pos i with val=j,dp[i][j]=max {k=1,2...,i-1}{ dp[k][j] + same(k+1,i-1) }-> O(N^2 M) =35pts375 行未改动全部展开int fuck(int x,int n){int l = 1;int r = n;int ret;while(l <= r){int mid = (l + r) / 2;if(b[mid] > x){r = mid - 1;615 行未改动全部展开// The functions contained in this file are pretty dummy// and are included only as a placeholder. Nevertheless,// they *will* get included in the shared library if you// don't remove them :)//// Obviously, you 'll have to write yourself the super-duper// functions to include in the resulting library...// Also, it's not necessary to write every function in this file.// Feel free to add more files in this project. They will be16 行未改动// A function always returning zeroint SampleFunction2(){// insert code herereturn 0;}}```82 行未改动// 想知道最多可以关闭多少测速仪。// 提示:n 很大,本题的“提示”部分提供了有关加速度的公式。#include<i'll ak ioi>qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqqwq qwq qwq qwq qwq qwq qwq qwq qwq qwq qwqToT but and i fail in CSP-S```## JS-S00620223 行未改动全部展开float DistanceToGo = car.v * TimeToDec + 0.5 * car.a * Pow2(TimeToDec);int TargetPos = DistanceToGo + car.d;//Does not need to SiSheWuRu//Second Stepif(TargetPos >= L) return m;int Id = lower_bound(MonitorPos + 1,MonitorPos + m + 1,TargetPos + 1) - MonitorPos;return Id;}```182 行未改动全部展开// In fact, I have no idea how to caculate the second number// I've tried a n^3 method...but that clearly won't work =(// I won't be trying n,m<=3000, instead, I use out another code ( n,m<=20 or a>=0 )// So... I would still get 60pts```[color.cpp] **20 分:我免费了**90 行未改动```【拼音翻译:nitian -> 逆天】[color.cpp] **这么树形 dp 啊**```cpp/*286 行未改动全部展开[arena.cpp/color.cpp/detect.cpp/duel.cpp] **bless me**```cpp//Good luck CSP-S2 2024//RP++//Wel and doowzs blesses me.```404 行未改动全部展开[arena.cpp/color.cpp/detect.cpp/duel.cpp] **你是懂诈骗的**```//freopen//freopen//freopen//freopen//freopen//freopen luogu uid 772909```## JS-S01698195 行未改动全部展开