终于AC~测试点有问题

mfkw  •  11个月前


include<bits/stdc++.h>

using namespace std; int main(){

long long int k1,k2,k3,k4,r1,r2,r3,r4,c1,c2,c3,c4,a,b,t1,t2,t3,n1,n2,n3,n4;
cin>>a>>b;	
if(a<=12&&a>=3&&b>=12 or a<=12&&a>=3&&b>=0){
	t1=12-a;
}
if(a<=12&&a>=3&&b<12&&b>2){
	t1=b-a;
}
if(a>12&&a<=17&&b>=17){
	t2=17-a;
}
if(a<=12&&b>=17 or a<=12&&b>=0&&b<13){
	t2=5;
}
if(a<=12&&b<17&&b>12){
	t2=b-12;
}
if(a<=20&&b<=24&&b>20){
	t3=4;		
}
if(a<=20&&b>=0&&b<=2){
	t3=4+b;		
}
if(a>=24&&b<=2){
	t3=b;
}
if(b<12&&b>2){
	t2=0;
	t3=0;
}
if(a==0&&b==0){
	t1=0;
	t2=0;
	t3=0;
}
if(b<=20&&b>2){
	t3=0;
}
if(a>=17){
	t1=0;
	t2=0;
}
cin>>k1>>r1>>c1; 
cin>>k2>>r2>>c2;
cin>>k3>>r3>>c3>>k4>>r4>>c4;
n1=(r1-c1)*t1*k1;
n2=(r2-c2)*t2*k2;
n3=(r3-c3)*t3*k3;
n4=(r4-c4)*t3*k4;
cout<<n1+n2+n3+n4;

return 0;

}


评论:

请先登录,才能进行评论