题解列表

筛选

tom问题 (C语言解法)

摘要:#include<stdio.h>int main(){    long n,sum;    while(scanf("%ld",&n)!=EOF)    {        sum=0;     ……

[归并排序]数组法(c++)

摘要:解题思路:先分别将两个数组各自排序,再使用归并排序注意事项:参考代码:#include <iostream>using namespace std;int main() { int n, m, t; ……

利润计算--java

摘要:解题思路:利润 小于等于100000  100000 * 0.1利润大于100000小于等于200000100000 * 0.1+i(-100000) * 0.075利润大于200000 小于等于40……

编写题解 1223: 敲七游戏

摘要:解题思路:注意事项:参考代码:s = int(input()) count = 0 for i in range(1,s+1):     if i%7==0 or &#39;7&#39; in ……

1209: 密码截获 java

摘要:``` import java.util.Scanner; public class Main { public static void main(String[] args) ……

DNA简单题解

摘要:#include<iostream>using namespace std;struct DNA{    int a;//行数    int b;//重复度};int main(){    int n……

回文串思路和参考代码(C语言)

摘要:解题思路:首先注意到字符串长度小于255,所以我们定义一个255个存储单元的数组即可,然后用scanf读入字符串,strlen函数得到字符个数,最后for循环判断。注意事项:参考代码:#include……