![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
n诺
宝宝很聪明
狗子你得加油写论文呀~
展开
-
n诺1715十进制转换二进制
忘了从哪个哥们看到的思想。。。。。话说我更喜欢itoa()函数的说,可是n诺不让用,说是编译错误。。。。。 #include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include<cstdlib> using namespace std; int main() { int n; int a[55]; while(cin>>dec...原创 2021-02-18 18:54:57 · 103 阅读 · 0 评论 -
n诺1390合并字符串
有时候打败你的不是题目本身,而是输出格式。。。。嘤嘤嘤。。。。 例如不能用while(true){},这样会报Output Limit Exceeded 。至于杭电能不能用我就不知道了,反正n诺不让用。 #include<iostream> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { char s1[105],s2...原创 2021-02-18 17:51:30 · 80 阅读 · 0 评论 -
n诺1473字符棱形
#include<iostream> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { int n; while(cin>>n) { for(int i=0;i<n;i++) { for(int k=n-i-1;k>0;k--) { cout<<" "; ...原创 2021-02-18 17:07:50 · 88 阅读 · 0 评论 -
n诺1352众数
好想用哈希map和结构体,可是我不会呀。胡乱的瞎整吧。。。。刷题刷得我停不下来怎么办。。。。 #include<iostream> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { int a[20]; for(int i=0;i<20;i++) { cin>>a[i]; } sort(a,a+20)原创 2021-02-16 17:19:39 · 114 阅读 · 0 评论