1108: 守望者的逃离 贪心 摘要:解题思路:贪心注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int m,s,…… 题解列表 2024年08月08日 2 点赞 0 评论 377 浏览 评分:0.0
这个题细节很多,wa了很多次 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; string s; cin>>n>…… 题解列表 2024年08月08日 0 点赞 0 评论 204 浏览 评分:0.0
最暴力的写法 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=0;i<=n;i…… 题解列表 2024年08月08日 0 点赞 0 评论 174 浏览 评分:8.0
原来不难,就只有第一个单词特殊啊 摘要:#include<bits/stdc++.h> using namespace std; int main() { string s; while(getline(cin,s)) {…… 题解列表 2024年08月08日 0 点赞 0 评论 123 浏览 评分:0.0
辗转相除最终归纳! 摘要:1.c++写#include<bits/stdc++.h> using namespace std; int _gcd(int a,int b) { while(b!=0)//可以简写…… 题解列表 2024年08月08日 0 点赞 0 评论 198 浏览 评分:0.0
Python的辗转相除 摘要:def gcd(a,b): while b: a,b=b,a%b return a a=int(input()) b=int(input()) print(…… 题解列表 2024年08月08日 0 点赞 0 评论 152 浏览 评分:0.0
虽然这是java的题目,但是,我用了c语言,船新版本 摘要: ```c #include #include #include #define MAX 1000001 typedef struct { char ch;//存储字母 …… 题解列表 2024年08月08日 0 点赞 0 评论 359 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { int letters = 0, digit…… 题解列表 2024年08月08日 1 点赞 0 评论 247 浏览 评分:0.0
奖学金:结构体多关键字排序 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; struct st{ int sn,…… 题解列表 2024年08月08日 2 点赞 0 评论 298 浏览 评分:0.0
------------走一走-----------看一看---------------整数奇偶排序--------- 摘要:解题思路:注意事项:/*这里的 EOF 是一个在 <stdio.h> 头文件中定义的宏,它表示文件结束符(End Of File)。 在标准输入中,通常通过按下 Ctrl+D(在 Unix/Linu…… 题解列表 2024年08月08日 0 点赞 0 评论 239 浏览 评分:9.9