80
查看原帖
80
1314279
MichaelMao楼主2024/11/28 21:58
#include<iostream>
using namespace std ;
bool is62 (long long x)
{
    int a[20] , i = 2 ;
    while(x != 0)
    {
       a[i] = x % 10 ;
       x /= 10 ;
       if (a[i] == 2 && a[i - 1] == 6) return 1 ;
       i ++ ;
    }
    return 0 ;
}
int main ()
{
    long long x ;
    cin >> x ;
    if (is62(x) || x % 62 == 0) cout << "Yes" ;
    else cout << "No" ;
    return 0 ;
}

求调,谢谢大佬!

2024/11/28 21:58
加载中...