1953: 三位数分解 摘要:解题思路:慢慢分!注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b,c,d; ci…… 题解列表 2022年07月07日 0 点赞 0 评论 508 浏览 评分:7.3
2629——————数学题 摘要:注意事项: pow() 方法返回 x,y(x 的 y 次方) 的值。参考代码:p,m = map(int,input().split())…… 题解列表 2022年07月07日 0 点赞 0 评论 378 浏览 评分:9.9
2239: 蓝桥杯算法训练-动态数组使用(vector) 摘要:解题思路:c++的stl里面提供了动态数组,在头文件#include <vector>中,vector<int>p;//创建动态数组pp.push_back(k);//依次在p中放入值p.size()…… 题解列表 2022年07月07日 0 点赞 0 评论 471 浏览 评分:9.9
2554———————交点 摘要: a,b = map(float,input().split()) c,d = map(float,input().split()) x = (d-b)/(a-c) …… 题解列表 2022年07月07日 0 点赞 0 评论 500 浏览 评分:0.0
while 连续输入值(简单的a+b) 摘要:解题思路:使用while 语句输入的小技巧注意事项:注意连续输入参考代码:#include<stdio.h>int main(){ int a,b,t; while(scanf("%d %…… 题解列表 2022年07月07日 0 点赞 0 评论 624 浏览 评分:9.9
输出 Hello World! 超简单 摘要:解题思路:没什么技巧,注意输出格式注意事项:格式参考代码:#include<stdio.h>int main(){ printf("**************************\n");…… 题解列表 2022年07月07日 0 点赞 0 评论 504 浏览 评分:9.9
输入数,判断大小,超简单 摘要:解题思路:很简单,用判断语句判断大小即可注意事项:语句的用法参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c);…… 题解列表 2022年07月07日 0 点赞 0 评论 386 浏览 评分:9.9
优质题解 2240: 蓝桥杯算法训练-删除数组零元素(stl) 摘要:解题思路:最简单的方法是在给数组赋值的时候忽略0,或者在打印输出的时候忽略0,但是这样就和题目意思不符了。对于一个数组的元素删除是很麻烦的,删除一个数以后需要将后面的元素向前补齐,实现麻烦。在c++ …… 题解列表 2022年07月07日 0 点赞 0 评论 770 浏览 评分:9.9
[编程入门]自定义函数之字符串连接 摘要:解题思路:利用字符数组的相关知识点注意事项:1.是%s是输出字符串,不要写成%c. 2.输出printf时不要加\n,这是换行符。参考代码:#include<stdio.h…… 题解列表 2022年07月07日 0 点赞 1 评论 596 浏览 评分:9.6
自定义函数之字符串反转 摘要:解题思路:字符数组逆序。注意事项:1.使用字符数组时要记得写#include<string.h> 2.输出单个字符是用%c,输出字符串时用%s.参考代码:#include<…… 题解列表 2022年07月07日 0 点赞 0 评论 1125 浏览 评分:9.9