题解列表
基因相关性(简单易懂)
摘要:解题思路:注意事项:注意sum和n的类型。参考代码:#include<stdio.h>#include<string.h>int main(){ int i; double n,j,k; ……
查找特定值(简单易懂!!!)
摘要:解题思路:注意事项:参考代码:#includeint main(){ int n,i,x; int count=0; int a[10000]; scanf("%d",&n);……
找树根和孩子 结构体 怎么感觉我把这题想难了 哈哈哈哈哈
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义结构体sss,包含两个整数成员x和y
struct sss{
……
编写题解 1997: 日期换算
摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main{ public static void main(String[] args){ ……
rock,scissors and paper
摘要:解题思路:这里根据3个string长度不同 就直接用int标记 封装一个判断函数 函数判断就三种结果 要么前面赢(8,5;4,8,;5,4;) 要不后面赢(这里复制一下就好了) 要不平局(s1.siz……
使用unordered_map解题
摘要:解题思路:充分利用STL容器的特性-unordered_map, 对其进行存放和计算 得出第一个个数为1的小写字母注意事项: 参考代码:#include<bits/stdc++.h>char sear……
编写题解 1227: 日期排序
摘要: #include
struct a
{
int a;
int b;
int c;
};
int main()
……
3310: 单调队列 哈哈哈哈哈哈哈哈
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义一个队列,用于存储结果
queue<int> q;
int m……
编写题解 1227: 日期排序
摘要:import java.util.*;public class Main{ public static void main(String[] args){ Scanner in=n……