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 评论 322 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long int min = 1000000, max = 0; scanf("%d", &n);…… 题解列表 2023年06月05日 1 点赞 0 评论 504 浏览 评分:0.0
C++ string类:字符串问题 摘要:# C++ string类 ```c++ #include using namespace std; int main() { string s; getline(c…… 题解列表 2023年06月05日 0 点赞 0 评论 717 浏览 评分:0.0
c++ 参考代码 摘要:// 任何一个数字都可以通过二进制表示 ```c++ // 任何一个数字都可以通过二进制表示 // 也就是通过对 初始值为 1 的数字反复的左移(乘以 2) 和 + 1 可以得到任意的数字 …… 题解列表 2023年06月05日 0 点赞 0 评论 814 浏览 评分:9.9
C++ string类: 去掉空格 摘要:# 输出不带空格即可 ```c++ #include #include using namespace std; int main() { string s; wh…… 题解列表 2023年06月05日 0 点赞 0 评论 359 浏览 评分:0.0
C++ 使用set容器完成去重和排序: 明明的随机数 摘要:# C++ set容器 头文件 ```c++ #include ``` ## AC代码 ```c++ #include #include using namespace std…… 题解列表 2023年06月05日 0 点赞 0 评论 432 浏览 评分:0.0
皮亚诺曲线距离python 摘要:解题思路:借鉴了https://www.cnblogs.com/EchoZQN/p/14829144.html的做法注意事项:参考代码:k = int(input())x1,y1 = map(int,…… 题解列表 2023年06月05日 0 点赞 0 评论 424 浏览 评分:0.0
数据结构-直接插入排序 摘要:解题思路:关键是理解好j--和j+1当时所代表的含义注意事项:参考代码:import java.util.Scanner;public class Main2 { public static v…… 题解列表 2023年06月05日 0 点赞 0 评论 457 浏览 评分:0.0
2924: 明明的随机数 摘要:解题思路:输入时去重,不用进行排序,把数字存入数组对应位置,例如k=20,那它的位置就是a[20]。题目是1-1000之间随机数,初始化a[1001]={0},当 !=0 时输出注意事项: 有一千个空…… 题解列表 2023年06月05日 0 点赞 0 评论 424 浏览 评分:0.0
2913整数去重 摘要:解题思路:注意事项:参考代码:public class 整数去重 { public static void main(String [] args){ Scanner sc=new…… 题解列表 2023年06月05日 0 点赞 0 评论 398 浏览 评分:0.0