P1001 (C++代码)水一下 摘要:解题思路: 又水了一发啊参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.…… 题解列表 2019年04月17日 0 点赞 0 评论 1055 浏览 评分:0.0
【蟠桃记】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>int main(){ using namespace std; int n,i,sum=1; while(cin.eof()!=1)…… 题解列表 2019年04月17日 0 点赞 0 评论 1176 浏览 评分:0.0
弟弟的作业 (C++代码) 摘要:解题思路:注意事项:很简单的字符串处理问题参考代码:#include<iostream>#include<string>#include<cstring>#include<cstdio>using n…… 题解列表 2019年04月17日 0 点赞 0 评论 767 浏览 评分:0.0
[编程入门]三个数字的排序 (C++代码) 摘要:解题思路: 三个字符排序? 如果对c++有点了解的话,c++的stl里面是有个set容器的,set是STL中一种标准关联容器。它底层使用平衡的搜索树——红黑树实现,插入删除操作时仅仅需要指…… 题解列表 2019年04月16日 0 点赞 0 评论 2370 浏览 评分:0.0
[编程入门]三个数字的排序 (C++代码) 摘要:解题思路: 直接c++sort排序,c++真香注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[3];…… 题解列表 2019年04月16日 0 点赞 0 评论 841 浏览 评分:0.0
[编程入门]电报加密 (C++代码) 摘要:解题思路: 逐个逐个读取字符,然后判断是否改变然后输出就AC了注意事项: 没什么好注意的参考代码:#include<bits/stdc++.h>using namespace std;in…… 题解列表 2019年04月16日 0 点赞 0 评论 1179 浏览 评分:0.0
[编程入门]宏定义之找最大数 (C++代码) 摘要:解题思路: 找最大数,c语言选手可以宏定义调用函数,c++可以调用本身的库函数max,c++真香注意事项: 注意格式和要求输出两遍 c++真香参考代码:#include<bits/s…… 题解列表 2019年04月16日 0 点赞 0 评论 981 浏览 评分:0.0
[编程入门]实数的打印 (C++代码) 摘要:解题思路: 嗯 估计没啥说的吧,直接暴力出奇迹,也可以for循环暴力注意事项: 注意空格就行了参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2019年04月16日 0 点赞 0 评论 774 浏览 评分:0.0
[编程入门]宏定义之闰年判断 (C++代码) 摘要:解题思路: 首先明白什么是闰年 闰年是公历中的名词。闰年分为普通闰年和世纪闰年。 普通闰年:能被4整除但不能被100整除的年份为普通闰年。(如2004年就是闰年,1900年不…… 题解列表 2019年04月16日 0 点赞 1 评论 1848 浏览 评分:6.9
[水]宏定义的练习 (C++代码) 摘要:解题思路: 求余数?翻译一下就是求余注意事项: 注意点: 求余只能是整数,当然题目中也说明了,所以变量只能开int参考代码:#include<bits/stdc++.h>using …… 题解列表 2019年04月16日 0 点赞 0 评论 818 浏览 评分:0.0