Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
323873 顾子丞 【C1-12】彩票 C++ 通过 100 1 MS 252 KB 280 2025-05-23 21:10:45

Tests(3/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<<"2"; }else{ cout<<"0"; } return 0; }


测评信息: