rock,scissors and paper 摘要:解题思路:这里根据3个string长度不同 就直接用int标记 封装一个判断函数 函数判断就三种结果 要么前面赢(8,5;4,8,;5,4;) 要不后面赢(这里复制一下就好了) 要不平局(s1.siz…… 题解列表 2024年11月30日 0 点赞 0 评论 294 浏览 评分:0.0
编写题解 1997: 日期换算 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main{ public static void main(String[] args){ …… 题解列表 2024年11月30日 0 点赞 0 评论 184 浏览 评分:0.0
找树根和孩子 结构体 怎么感觉我把这题想难了 哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体sss,包含两个整数成员x和y struct sss{ …… 题解列表 2024年11月30日 0 点赞 0 评论 176 浏览 评分:0.0
查找特定值(简单易懂!!!) 摘要:解题思路:注意事项:参考代码:#includeint main(){ int n,i,x; int count=0; int a[10000]; scanf("%d",&n);…… 题解列表 2024年11月30日 0 点赞 0 评论 275 浏览 评分:9.9
基因相关性(简单易懂) 摘要:解题思路:注意事项:注意sum和n的类型。参考代码:#include<stdio.h>#include<string.h>int main(){ int i; double n,j,k; …… 题解列表 2024年11月30日 1 点赞 0 评论 382 浏览 评分:9.9
随便解释一下吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ char s1[201]={0} ,s2[201]={0} ; int i=0 ,a=0 ,c=…… 题解列表 2024年11月30日 0 点赞 0 评论 294 浏览 评分:10.0
3086: 信息学奥赛一本通T1337-单词查找树 真阴啊这题 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符串数组,用于存储输入的字符串 string s[2000…… 题解列表 2024年11月30日 0 点赞 0 评论 146 浏览 评分:0.0
最简自然数的拆分 摘要:参考代码:#include <iostream> #include <stdlib.h> #include <stdio.h> #include <string.h> using namesp…… 题解列表 2024年11月30日 0 点赞 0 评论 448 浏览 评分:9.9
输出最高分数的学生姓名 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int a[100]; char b[…… 题解列表 2024年11月30日 0 点赞 0 评论 216 浏览 评分:0.0
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int n){ if(n<=4) return n; else return fun(n-1)+fun(n-3);}in…… 题解列表 2024年12月01日 1 点赞 0 评论 319 浏览 评分:0.0