题解列表

筛选

霸道坤坤爱上猴

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d", &a, &b);    if(a>=10||b>=20……

简洁:找规律

摘要:解题思路:比较两个字符,若这两个字符相等,那么不必操作,若这两个字符不等,则比较后面两个字符串的后一位,如也相等,则替换,否则,删除,同时操作数加1。参考代码:#include <bits/stdc+……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() {    int i, j, k, start = 0, end, max……

第十二届国赛真题-异或变换

摘要:解题思路:存在一个最小的整数x,使得pow(2,x)>=n,则每隔pow(2,x)就会循环一次。注意事项:参考代码:#include<iostream>#include<cstring>using n……

矩阵对角线求和

摘要:解题思路:用数组来接收注意对角线和副对角线的i,j的位置关系对角线:i==j副对角线:j==2-i&&j>=0注意事项:希望各位大佬指出不足的地方参考代码://求一个3×3矩阵对角线元素之和。//用数……

每天2道程序题的纯小白

摘要:解题思路:注意事项:#include<stdio.h> void Fun(char x, int y, int* num); int ju[11][11] = { 0 }; int main()……