编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())#map()方法将字符串转化为整型 print(a+b)…… 题解列表 2022年10月18日 0 点赞 0 评论 816 浏览 评分:9.3
C++ 类实现 : N个学生类(N<100),每个有属性 学号、姓名、三科成绩。两个成员函数 一个输入数据,一个输出。 摘要:解题思路:注意事项:参考代码:class student{public: string num, name; // 学号、名字 vector<int>v; // …… 题解列表 2022年10月18日 0 点赞 0 评论 464 浏览 评分:0.0
直接面向结果的代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; string b; for(i…… 题解列表 2022年10月18日 0 点赞 0 评论 298 浏览 评分:0.0
编写题解 2749: Hello, World! 摘要:解题思路:注意事项:参考代码:print('Hello, World!') #注意逗号后空一格…… 题解列表 2022年10月17日 0 点赞 0 评论 676 浏览 评分:5.3
输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) #map()方法将字符串转化为整数 print(b) #也可以转化为列表,再通过索引获取,如下, #l…… 题解列表 2022年10月17日 0 点赞 0 评论 387 浏览 评分:0.0
[编程基础]输入输出练习之格式控制 摘要:解题思路:两种方法1.左对齐:'%-8d'%n 。不加-为右对齐(默认)2.'{:<8d}'.format(n)。>为右对齐,d表示十进制。注意事项:参考代码:a,b,…… 题解列表 2022年10月17日 0 点赞 0 评论 1331 浏览 评分:9.3
1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,num; cin>>num; whi…… 题解列表 2022年10月17日 0 点赞 0 评论 589 浏览 评分:9.9
[编程基础]输入输出练习之精度控制2 摘要:解题思路:注意事项:参考代码:print('%.12f'%float(input())) #或print(format(float(input()),'.12f'))…… 题解列表 2022年10月17日 0 点赞 0 评论 657 浏览 评分:9.9
[编程基础]输入输出练习之精度控制1 摘要:解题思路:常用两种方法:'%.3f'%n format(n,'.3f')'{:.3f}'.format(n)注意事项:参考代码:print('%…… 题解列表 2022年10月17日 0 点赞 0 评论 699 浏览 评分:9.9
字符串反转 摘要:解题思路:注意事项:参考代码:#include <iostream> //标准输入输出流#include <string> //字符串类型#include <algorithm> …… 题解列表 2022年10月17日 0 点赞 0 评论 313 浏览 评分:0.0