题解列表
2331: 信息学奥赛一本通T1180-分数线划定
摘要:解题思路:注意事项:参考代码:看到还是没有这道题的python代码讲解,就把很久之前写的一个代码放上来,希望可以帮到需要的人。import math
a,b=map(int,input().spli……
暴力拆解 分解质因数 直接算出最小的质因数
摘要:解题思路:某数已知是两个质数的乘积,这里设为n大质数设为b;小指数设为a根号下n一定大于较小的质数a(可数学验证),以此解决计算时间超时的问题参考代码:int n;scanf("%d",&n);int……
易懂版(c语言代码)
摘要:```c
#define MAX 101
#include
int main(){
int num[MAX][MAX];
int n,sum1=0;
scanf(……
不用判断是否为奇数也能做(c语言代码)
摘要:```c
#include
int main(){
int n,sum=0;
scanf("%d",&n);
for(int i=1;i……
见鬼了,哪位大佬帮我看看代码,求求了。
摘要:```c
#include
#include
#define MAX 101
int bf(char *num,char *num1){
int i=0,j=0;
whil……