Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
334354 | 李俞家骅 | 【C1-12】彩票 | C++ | 通过 | 100 | 2 MS | 248 KB | 340 | 2025-07-18 09:39:35 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,xs,xg,ys,yg; cin>>x>>y; xg=x/1%10; xs=x/10%10; yg=y/1%10; ys=y/10%10; if(x==y) cout<<"100"; else if(xg==ys&&xs==yg) cout<<"20"; else if(xg==yg||xs==ys||xg==ys||xs==yg) cout<<"2"; else cout<<"0"; return 0; }