我咋这么能挂分
J:
- t1:
ABCDF-10pts - t2: 实现咋那么烂 -2h
- t3: 好简单 个人觉得 t3 < t2:)
- t4: 还剩10min.....
S:
- t1: 好简单
- t2: 好简单 floyd
板子忘了考场自己推的不知道哪里挂了 -72pts - t3 t4: 还剩2h不想写了........
J: 300 -> 290 S: 200 -> 128
至少比去年高不是吗 去年 J:200 -> 178 S:100 -> 19
我咋这么能挂分........
附
J T1:
::::success[原本实现100pts]
#include<bits/stdc++.h>
using namespace std;
int main(){
int c1,c2;
string s1,s2;
cin>>c1>>s1>>c2>>s2;
if(c1==c2){
cout<<"1";
if(((s1[0]==s2[0])&&(s1[1]==s2[1]))){
cout<<"1";
if(!((s1[2]>'C')^(s2[2]>'C'))){
cout<<"1";
char mi=min(s1[2],s2[2]),ma=max(s1[2],s2[2]);
if(!((mi=='A')&&(ma=='C'))){
cout<<"1";
}else cout<<"0";
}else cout<<"00";
}else cout<<"000";
}else cout<<"0000";
}
注意到这里我其实也不知道ABCDF只是这个实现可以过
::::
::::error[我改的90pts]
#include<bits/stdc++.h>
using namespace std;
int main(){
int c1,c2;
string s1,s2;
cin>>c1>>s1>>c2>>s2;
if(c1==c2){
cout<<"1";
if(((s1[0]==s2[0])&&(s1[1]==s2[1]))){
cout<<"1";
if(!((s1[2]>'C')^(s2[2]>'C'))){
cout<<"1";
char mi=min(s1[2],s2[2]),ma=max(s1[2],s2[2]);
if(ma-mi==1){
cout<<"1";
}else cout<<"0";
}else cout<<"00";
}else cout<<"000";
}else cout<<"0000";
}
::::