Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
650 通过 记数问题 C++ 解答错误 2 MS 240 KB 203 2022-05-21 19:49:48

Tests(0/10):


#include <bits/stdc++.h> using namespace std; int main(){ int n,x,cx; cin>>n>>x; for(int i=0;i<n;i++){ if(i==x) cx++; if(i%10==x) cx++; if(i/10==x) cx++; } cout<<cx; return 0; }


测评信息: