Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
323872 顾子丞 【C1-12】彩票 C++ 解答错误 0 2 MS 240 KB 281 2025-05-23 21:06:47

Tests(0/3):


#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==b){ cout<<"100"; }else if(a/10==b%10 && a%10==b/10){ cout<<"20"; }else if(a/10==b%10 || a%10==b/10 || a/10==b/10 || a%10==b%10){ cout<<"10"; }else{ cout<<"0"; } return 0; }


测评信息: