题解列表
1020: [编程入门]猴子吃桃的问题--倒过来看问题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=0,x=1; scanf("%d",&n); for(int i=1;i<n;i++) { x=2……
使用sort方法自定义cmp实现排序,直接进行大小比较
摘要:解题思路:整体思路是将要比较的字符串放入一个字符数组里面,为了便于写cmp方法进行比较,我在这里用结构体将其保存,开了1000的长度是因为一开始我开了10怎么也通过不了第二个测试点,检查算法没有问题,……
1108: 守望者的逃离(双线牛逼)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,s,t; cin>>m>>s>>t; i……
1131: C语言训练-斐波纳契数列
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int number(int i){ if(i<=2) return 1; else return number(i-1)+number……
1112: C语言考试练习题_一元二次方程
摘要:解题思路:就数学公式的基本应用注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int m……
2750: 字符菱形
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……
1124: C语言训练-大、小写问题
摘要:解题思路:注意事项:参考代码:傻逼题目限制得put,get才能通过#include<iostream>#include<cstring>using namespace std;int main(){ ……
1126: C语言训练-字符串正反连接
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char ch1[100],c……
1133: C语言训练-求1+2!+3!+...+N!的和
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; long long s=0,t;//求阶层,……