首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
大美数专题
7-1 大美数 (15 分)
分析 视频讲解: 我不是匠人 求先出所有因子,然后从因子中选4个数,使得这四个数之后可以整除x我的小学数学可真烂,整除的意思都没掌握。a整除b的意思是b能被a整除。 代码 #include <iostream>#include <vector>#include <string>#include <cmath>#include <algorithm>#include <queue>
阅读更多...
PAT乙级1096 大美数 (15 分)
代码 /*1. 4不同正因子 1和本身也是它的因子2. 求和3. N 整除 B 表示:B能被N整除 4. Yes首字母大写 */ #include <bits/stdc++.h>using namespace std;int main() {int K;cin >> K;int N;for(int i = 0; i < K; i++){cin >> N;vector<int
阅读更多...