top1编程
← 返回题目
题解

【入门】找六位数

1 条题解

  • 0
    @ 2026-7-28 22:10:07
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
    	for(int i = 100000;i <= 199999;i++){
    		int x = i % 100000 * 10 + 1;
    		if(x == i * 3){
    			cout<<i<<endl;
    		}
    	}
    	return 0;
    }
    
    • 1