1 条题解

  • -1
    @ 2026-9-2 19:04:58
    
    ```#include <bits/stdc++.h>
    using namespace std;
    bool g(int n){
    	int m=7,z=n,x=0;
    	while(z>0){
    		x=(x*10+z%10);
    		z/=10;
    	}
    	while(x>=10){
    		m=(m*10+x%10);
    		x/=10;
    	}
    	if(m%n==0&&m/n==4){
    		return true;
    	}else{
    		return false;
    	}
    }
    
    int main() {
        for(int i=100007;i<=999997;i++){
        	if(g(i)){
        		cout<<i;
        		return 0;
    		}
    	}
    	return 0;
    }
    • @ 2026-9-2 19:06:40

      我写的,拿去复制运行一下,就知道了!(记得点赞!!!)

信息

ID
30016
时间
1000ms
内存
256MiB
难度
8
标签
递交数
11
已通过
7
上传者