版本比较
福建省J组迷惑行为
正文
增加 29 行删除 29 行
9 行未改动101112131415161718192021222323 行未改动47484950515253545513 行未改动697071727374757677787980818214 行未改动97989910010110210310410534 行未改动14014114214314414514614714881 行未改动23023123223323423523623723823924024124 行未改动26626726826927027127227327414 行未改动28929029129229329429529629729829930030130230330430530630730830931031125 行未改动3373383393403413423433443456 行未改动35235335435535635735835936014 行未改动37537637737837938038138238330 行未改动41441541641741841942042142242342475 行未改动5005015025035045055065075082 行未改动51151251351451551651751851952052152252352452552652752852919 行未改动549550551552553554555556557259 行未改动全部展开8178188198208218228238248258268278288298308318328338348358368378388394 行未改动9 行未改动#include<bits/stdc++.h>using namespace std;/*我知道每年洛谷上都有CSP-J/S代码整活,所以请把我这份代码推上去。 qwq!!!!!!!!!!!!用户名:Cli****hi附:这次的大样例好不规范*/long long t,m,a,b,c,delta;23 行未改动else if(b==0&&c==0){printf("0");}else if(delta==0){//有理数if(a*(-b)>0){long long k1 = abs(b),k2 = 2*abs(a);long long g = gcd(max(k1,k2),min(k1,k2));if(k1%k2==0){13 行未改动else{printf("%lld/%lld",k1/g,k2/g);}}//无理数}else if(delta>0){long long tp = sqrt(delta);//带更号if(tp*tp!=delta){//处理deltalong long dc = 1;for(int i = 2;i*i<delta;i++){14 行未改动}else{printf("%lld/%lld",k1/g,k2/g);}}else if(a*(-b)<0){printf("-");long long k1 = abs(b),k2 = 2*abs(a);pp = k1;34 行未改动// else if(a<0){//-delta// }}//不带更号else if(tp*tp==delta){if(a>0){long long kk = tp-b;if(kk==0){81 行未改动//祝自己rp+=400//支持CCF//洛谷号:__Cby___//codeforces号:cby_//加油!//想来这段时间也付出了不少//希望CCF给我一个能证明我水平的分数!!!//11:52检查完文件```FJ-J01585在每一个程序里都在宣团。24 行未改动cout<<s;return 0;}//欢迎加入摸鱼团队 !!!//我们在洛谷50312团队等您!```FJ-J00044在bus里面默写了《Dive back in time》的歌词。14 行未改动CCF你这么出题真的会让人得寸进尺啊啊啊啊既没有捆绑测试,也没有多组数据关键是还有输出-1就对的测试点!!!!!哇偶活这么大第一次看到CCF这么善良*//*无聊到默写歌词的到底还有谁?!《Dive back in time》It didn't take too long to realizeSomething has change in the back of my mindYour eyesThere ain't no where left to hide behindTime no longer flew like it wasWhen the flash froze everything beforeWithout youI don't know if I can take this road~Chase you to the end of worldJust to say your name once moreIf I had only get it right beforeEvery minutes that I delback in time25 行未改动Dive...Dive back in timeDive...I don't you feel soryI love where I going nowCause I about to lose myCause I about to lose myCause I about to lose my mind6 行未改动Come back from the dive back in timeDive...Dive back in timeDive...*/```FJ-J00028在uqe里把freopen注释掉了,骗分失败(14 行未改动int lll=c/a;cout<<sqrt(lll);}}}return 0;}```30 行未改动FJ-J00267在代码里写下了“玩原玩的”......```cpp//好好好你这么写是吧。//体现出金钱的珍贵和自驾路途的遥远,衬托出社会底层人民(指小苞)的艰辛(指旅个游都要这么省钱)和脑子不好使(指不会算总费用让我们来算)。//小苞 = 魈宝(警觉)//玩原玩的#include<bits/stdc++.h>using namespace std;int n,d,j;int v[100010],a[100010],cmin=100010;75 行未改动if(n==3) cout<<3<<" "<<3;if(n==2) cout<<2<<" "<<2;if(n==1) cout<<1<<" "<<1;if(n==9) cout<<5<<" "<<4;if(n==18) cout<<7<<" "<<1;if(n==10) cout<<5<<" "<<6;if(n==17) cout<<7<<" "<<1;if(n==16) cout<<6<<" "<<6;2 行未改动if(n==13) cout<<6<<" "<<6;if(n==12) cout<<6<<" "<<6;if(n==11) cout<<5<<" "<<2;if(n==19) cout<<7<<" "<<1;return 0;}```FJ-J00420在apple和road中将freopen注释了。```cpp#include<bits/stdc++.h>using namespace std;vector<vector<int>> a;int main(){// freopen(" apple.in","r",stdin);// freopen(" apple.out","w",stdout);int n,ans=0;cin>>n;19 行未改动int v;cin>>v;}int c=rand(1,1000000);cout<<c;}```FJ-J00551没有写freopen。259 行未改动全部展开break;}}//2.求得费用与加的油量if(flag==false)//上一轮选择没有选到合适的目标,直接前往第n个站点{ans=ans+(floor((double)(b[n]-b[pt])/((double)d)))*a[pt];// cout<<floor((double)(b[n]-b[pt])/((double)d))*a[pt]<<endl;break;}else{//1.计算油量ll plfue=ceil((double)(b[newpt]-b[pt])/((double)d));fuel+=plfue;//"加油"//2.计算价格ans+=plfue*a[pt];//3.进行迭代// fuel-=ceil((double)(b[newpt]-b[pt])/((double)d));pt=newpt;//到达指定站点}}cout<<ans<<endl;4 行未改动9 行未改动101112131415161718192021222323 行未改动47484950515253545513 行未改动697071727374757677787980818214 行未改动97989910010110210310410534 行未改动14014114214314414514614714881 行未改动23023123223323423523623723823924024124 行未改动26626726826927027127227327414 行未改动28929029129229329429529629729829930030130230330430530630730830931031125 行未改动3373383393403413423433443456 行未改动35235335435535635735835936014 行未改动37537637737837938038138238330 行未改动41441541641741841942042142242342475 行未改动5005015025035045055065075082 行未改动51151251351451551651751851952052152252352452552652752852919 行未改动549550551552553554555556557259 行未改动全部展开8178188198208218228238248258268278288298308318328338348358368378388394 行未改动9 行未改动#include<bits/stdc++.h>using namespace std;/*我知道每年洛谷上都有CSP-J/S代码整活,所以请把我这份代码推上去。 qwq!!!!!!!!!!!!用户名:Cli****hi附:这次的大样例好不规范*/long long t,m,a,b,c,delta;23 行未改动else if(b==0&&c==0){printf("0");}else if(delta==0){//有理数if(a*(-b)>0){long long k1 = abs(b),k2 = 2*abs(a);long long g = gcd(max(k1,k2),min(k1,k2));if(k1%k2==0){13 行未改动else{printf("%lld/%lld",k1/g,k2/g);}}//无理数}else if(delta>0){long long tp = sqrt(delta);//带更号if(tp*tp!=delta){//处理deltalong long dc = 1;for(int i = 2;i*i<delta;i++){14 行未改动}else{printf("%lld/%lld",k1/g,k2/g);}}else if(a*(-b)<0){printf("-");long long k1 = abs(b),k2 = 2*abs(a);pp = k1;34 行未改动// else if(a<0){//-delta// }}//不带更号else if(tp*tp==delta){if(a>0){long long kk = tp-b;if(kk==0){81 行未改动//祝自己rp+=400//支持CCF//洛谷号:__Cby___//codeforces号:cby_//加油!//想来这段时间也付出了不少//希望CCF给我一个能证明我水平的分数!!!//11:52检查完文件```FJ-J01585在每一个程序里都在宣团。24 行未改动cout<<s;return 0;}//欢迎加入摸鱼团队 !!!//我们在洛谷50312团队等您!```FJ-J00044在bus里面默写了《Dive back in time》的歌词。14 行未改动CCF你这么出题真的会让人得寸进尺啊啊啊啊既没有捆绑测试,也没有多组数据关键是还有输出-1就对的测试点!!!!!哇偶活这么大第一次看到CCF这么善良*//*无聊到默写歌词的到底还有谁?!《Dive back in time》It didn't take too long to realizeSomething has change in the back of my mindYour eyesThere ain't no where left to hide behindTime no longer flew like it wasWhen the flash froze everything beforeWithout youI don't know if I can take this road~Chase you to the end of worldJust to say your name once moreIf I had only get it right beforeEvery minutes that I delback in time25 行未改动Dive...Dive back in timeDive...I don't you feel soryI love where I going nowCause I about to lose myCause I about to lose myCause I about to lose my mind6 行未改动Come back from the dive back in timeDive...Dive back in timeDive...*/```FJ-J00028在uqe里把freopen注释掉了,骗分失败(14 行未改动int lll=c/a;cout<<sqrt(lll);}}}return 0;}```30 行未改动FJ-J00267在代码里写下了“玩原玩的”......```cpp//好好好你这么写是吧。//体现出金钱的珍贵和自驾路途的遥远,衬托出社会底层人民(指小苞)的艰辛(指旅个游都要这么省钱)和脑子不好使(指不会算总费用让我们来算)。//小苞 = 魈宝(警觉)//玩原玩的#include<bits/stdc++.h>using namespace std;int n,d,j;int v[100010],a[100010],cmin=100010;75 行未改动if(n==3) cout<<3<<" "<<3;if(n==2) cout<<2<<" "<<2;if(n==1) cout<<1<<" "<<1;if(n==9) cout<<5<<" "<<4;if(n==18) cout<<7<<" "<<1;if(n==10) cout<<5<<" "<<6;if(n==17) cout<<7<<" "<<1;if(n==16) cout<<6<<" "<<6;2 行未改动if(n==13) cout<<6<<" "<<6;if(n==12) cout<<6<<" "<<6;if(n==11) cout<<5<<" "<<2;if(n==19) cout<<7<<" "<<1;return 0;}```FJ-J00420在apple和road中将freopen注释了。```cpp#include<bits/stdc++.h>using namespace std;vector<vector<int>> a;int main(){// freopen(" apple.in","r",stdin);// freopen(" apple.out","w",stdout);int n,ans=0;cin>>n;19 行未改动int v;cin>>v;}int c=rand(1,1000000);cout<<c;}```FJ-J00551没有写freopen。259 行未改动全部展开break;}}//2.求得费用与加的油量if(flag==false)//上一轮选择没有选到合适的目标,直接前往第n个站点{ans=ans+(floor((double)(b[n]-b[pt])/((double)d)))*a[pt];// cout<<floor((double)(b[n]-b[pt])/((double)d))*a[pt]<<endl;break;}else{//1.计算油量ll plfue=ceil((double)(b[newpt]-b[pt])/((double)d));fuel+=plfue;//"加油"//2.计算价格ans+=plfue*a[pt];//3.进行迭代// fuel-=ceil((double)(b[newpt]-b[pt])/((double)d));pt=newpt;//到达指定站点}}cout<<ans<<endl;4 行未改动