题解列表

筛选

谁考了第k名

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args)  ……

[编程入门]有规律的数列求和

摘要:一、解题思路:for()循环设第一项的分子为a,分母为b,则第一项为a/b,第二项为(a+b)/a,第三项为((a+b)+a)/(a+b),第四项为(((a+b)+a))+(a+b))/((a+b)+……

我的牛逼,实力证明一切

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,j,sum=1,a=0,va,b=2; for(i=1……

双循环遍历

摘要:# 纯纯打表 ```c++ #include #include using namespace std; char str[10000]; int f[26]; int main() ……

1049: [编程入门]结构体之时间设计

摘要:解题思路:题目主要要搞清楚什么是闰年,什么是平年,然后闰年每个月有多少天,平年每个月有多少天。注意事项:参考代码:#include <bits/stdc++.h> using namespace s……

2869: 字符串最大跨距

摘要:解题思路:注意事项:(≖͞_≖̥)参考代码:#include<iostream>#include<algorithm>#include<string.h>#include<string>using n……

自己想的思路,还请批评指教

摘要:解题思路:先创建一个数组,容量为9;将9个数字输入数组;输入需要插入的数;遍历这个数组,分两种情况(防止出现数组越界异常):(1)i == array.length - 1;(2)i < array.……

小问题 终成大错误

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,i;    int sum=0;    scanf("%d",&a);    for( i=1……