rock,scissors and paper 摘要:解题思路:这里根据3个string长度不同 就直接用int标记 封装一个判断函数 函数判断就三种结果 要么前面赢(8,5;4,8,;5,4;) 要不后面赢(这里复制一下就好了) 要不平局(s1.siz…… 题解列表 2024年11月30日 0 点赞 0 评论 315 浏览 评分:0.0
编写题解 1997: 日期换算 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main{ public static void main(String[] args){ …… 题解列表 2024年11月30日 0 点赞 0 评论 204 浏览 评分:0.0
找树根和孩子 结构体 怎么感觉我把这题想难了 哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体sss,包含两个整数成员x和y struct sss{ …… 题解列表 2024年11月30日 0 点赞 0 评论 195 浏览 评分:0.0
3086: 信息学奥赛一本通T1337-单词查找树 真阴啊这题 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符串数组,用于存储输入的字符串 string s[2000…… 题解列表 2024年11月30日 0 点赞 0 评论 165 浏览 评分:0.0
输出最高分数的学生姓名 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int a[100]; char b[…… 题解列表 2024年11月30日 0 点赞 0 评论 235 浏览 评分: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 评论 344 浏览 评分:0.0
信息学奥赛一本通T1260-拦截导弹 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义数组a和b,长度为1100,n初…… 题解列表 2024年12月01日 0 点赞 0 评论 126 浏览 评分:0.0
本题使用埃氏筛法来求解 摘要:解题思路:先将0~n以内的所有数都保存进数组注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int n; scanf("%d",&n);…… 题解列表 2024年12月01日 0 点赞 0 评论 236 浏览 评分:0.0
信息学奥赛一本通T1340-扩展二叉树 ????? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量,存储输入的字符串 string s; // 全局变量,当…… 题解列表 2024年12月01日 0 点赞 0 评论 138 浏览 评分:0.0
拆分位数《三位数》 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; cout<<n%10<…… 题解列表 2024年12月01日 0 点赞 0 评论 550 浏览 评分:0.0