A+B for Input-Output Practice (V) 摘要:#include<stdio.h> int main() { int a; scanf("%d",&a); int sum = 0,c; int b[a][100]; f…… 题解列表 2023年06月05日 0 点赞 0 评论 281 浏览 评分:0.0
c++入门必写题 摘要:解题思路:标记一个数 如果是素数就为1,反之为0,后面二层循环出来为1就加注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int i,j,…… 题解列表 2023年06月05日 0 点赞 0 评论 379 浏览 评分:2.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void CompactIntegers(int a[],int k,int n){ int i; for (i = k; …… 题解列表 2023年06月05日 0 点赞 0 评论 339 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1001]; gets(str); st…… 题解列表 2023年06月05日 0 点赞 0 评论 405 浏览 评分:0.0
不高兴的津津(C++实现,两种方法:vector容器和结构体数组) 摘要:解题思路:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一…… 题解列表 2023年06月05日 0 点赞 0 评论 734 浏览 评分:9.9
A+B for Input-Output Practice (III)C语言 摘要:#include<stdio.h> int main() { int a, b; while (scanf("%d%d", &a, &b)!=EOF) { if (a == 0…… 题解列表 2023年06月05日 0 点赞 0 评论 286 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long int min = 1000000, max = 0; scanf("%d", &n);…… 题解列表 2023年06月05日 1 点赞 0 评论 466 浏览 评分:0.0
C++ string类:字符串问题 摘要:# C++ string类 ```c++ #include using namespace std; int main() { string s; getline(c…… 题解列表 2023年06月05日 0 点赞 0 评论 682 浏览 评分:0.0
c++ 参考代码 摘要:// 任何一个数字都可以通过二进制表示 ```c++ // 任何一个数字都可以通过二进制表示 // 也就是通过对 初始值为 1 的数字反复的左移(乘以 2) 和 + 1 可以得到任意的数字 …… 题解列表 2023年06月05日 0 点赞 0 评论 771 浏览 评分:9.9
C++ string类: 去掉空格 摘要:# 输出不带空格即可 ```c++ #include #include using namespace std; int main() { string s; wh…… 题解列表 2023年06月05日 0 点赞 0 评论 327 浏览 评分:0.0