| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 378822 | 王璟源 | 【C1-11】抽奖 | C++ | 通过 | 100 | 4 MS | 240 KB | 361 | 2026-02-10 16:52:34 |
#include<iostream> using namespace std; int main(){ int a,b,g1,s1,g2,s2; cin>>a>>b; g1=b/1%10; s1=b/10%10; g2=a/1%10; s2=a/10%10; if(a==b){ cout<<"100"; }else if(g1==g2){ cout<<"10"; }else if(g1==s2){ cout<<"10"; }else if(s1==g2){ cout<<"10"; }else if(s1==s2){ cout<<"10"; }else{ cout<<"0"; } return 0; }