题解列表
用高精度除于低精度,求余数是否为0
摘要:解题思路:高精度除低精度 ,要运用小学教的除法运算思路,用flag标记是否有因子输出,如无,则输出none注意事项:参考代码:#include<stdio.h> #include<string.h>i……
就是通过分支选择来写
摘要:解题思路:注意事项:“整数”还有一个长边和短边的顺序好像也要调整一下参考代码:def inchjudge1(n): lside=1189 #初始设置边长 rside=841 ……
2818: 分离整数的各个数位
摘要:解题思路:注意事项:参考代码:a = input()
for i in a[::-1]:
print(i,end=' ')代码2:a = input()
a = a[::……
1283: [NOIP2001]装箱问题
摘要:```cpp
#include
#include
using namespace std;
int a[30];
int find(int x,int c)
{
if(c=0)
……
二维数组对角线遍历——找规律
摘要:解题思路:找行列之间坐标的规律,发现行列坐标之和成递增趋势,且输出顺序为先行后列(从行为0开始循环)注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int m……
1052: [编程入门]链表合并(超级简洁)!!!!!!!!!!!
摘要: import java.util.*;
public class 链表合并 {
public static void main(String[] args) {
Scanner sc ……
二维列表+Python特性
摘要:解题思路:获取下标,找到对应的已经存好地数据注意事项:A0——A9是10个数,向下取整可直接用int()参考代码:s=int(input()[1])
m,n=1189,841
result=[]
……
2916: 谁考了第k名(python)
摘要:解题思路:注意事项:参考代码:def KEY(x):
return float(x[1])
n,k = map(int,input().strip().split())
nu……