信息学奥赛一本通T1260-拦截导弹 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义数组a和b,长度为1100,n初…… 题解列表 2024年12月01日 0 点赞 0 评论 107 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:注意阶乘不要超过20,否则超了LONG LONG的范围参考代码:#include<bits/stdc++.h>using namespace std;int main(){ lon…… 题解列表 2024年12月01日 1 点赞 0 评论 216 浏览 评分:9.9
2000: 偶数列举题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<…… 题解列表 2024年12月01日 1 点赞 0 评论 354 浏览 评分:9.9
编写题解 3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,s=0,t=0; cin>>n; for(in…… 题解列表 2024年12月01日 3 点赞 1 评论 188 浏览 评分:9.9
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if(a%…… 题解列表 2024年12月01日 0 点赞 0 评论 626 浏览 评分:9.9
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std; int main(){ int x; cin >> x; char sco…… 题解列表 2024年12月01日 6 点赞 0 评论 870 浏览 评分:9.9
最简自然数的拆分 摘要:参考代码:#include <iostream> #include <stdlib.h> #include <stdio.h> #include <string.h> using namesp…… 题解列表 2024年11月30日 0 点赞 0 评论 426 浏览 评分:9.9
3086: 信息学奥赛一本通T1337-单词查找树 真阴啊这题 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符串数组,用于存储输入的字符串 string s[2000…… 题解列表 2024年11月30日 0 点赞 0 评论 137 浏览 评分:0.0
找树根和孩子 结构体 怎么感觉我把这题想难了 哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体sss,包含两个整数成员x和y struct sss{ …… 题解列表 2024年11月30日 0 点赞 0 评论 174 浏览 评分:0.0
rock,scissors and paper 摘要:解题思路:这里根据3个string长度不同 就直接用int标记 封装一个判断函数 函数判断就三种结果 要么前面赢(8,5;4,8,;5,4;) 要不后面赢(这里复制一下就好了) 要不平局(s1.siz…… 题解列表 2024年11月30日 0 点赞 0 评论 291 浏览 评分:0.0