题解列表

筛选

动态数组解决绝对值排序

摘要:解题思路:难点在于数组的长度需要人为输入,采用动态数组解决。注意事项:参考代码:#include<iostream>> #include<cmath> using namespace std; ……

非常基础的方式

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int arr[20] = { 0 }; int i = 0; int ……

1670: 拆分位数

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,c; cin>>n; c=n%10; b=n%10……

取石子游戏

摘要:解题思路:注意事项:参考代码:from math import sqrttry:    while True:        a,b=map(int,input().split())        i……

Tom数(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){     int i,s;    char a[100];    while(……

2877: 同行列对角线的格子

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d", &n);//n*n int i, j; scanf("%d %d", ……