1954: 话费计算 摘要:无脑输出。#include<iostream> using namespace std; int main() { double a; cin >> a; prin…… 题解列表 2021年12月23日 0 点赞 1 评论 445 浏览 评分:0.0
1000: [竞赛入门]简单的a+b 摘要:import java.io.*; /** * a + b 直接打印,没啥好说的。 */ public class Main { public static Buff…… 题解列表 2021年12月23日 0 点赞 0 评论 441 浏览 评分:0.0
1057: 二级C语言-分段函数 摘要:输出两位有效数字还是用 printf 方便。#include <bits/stdc++.h> using namespace std; int main() { double x;…… 题解列表 2021年12月23日 0 点赞 0 评论 446 浏览 评分:0.0
1083: Hello, world! 摘要:直接用 %c 输出 ASCII 码对应的字符,注意读入换行符时输出空格。#include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2021年12月23日 0 点赞 0 评论 383 浏览 评分:0.0
1093: 字符逆序 摘要:直接用 reverse 函数将字符串逆序。#include <bits/stdc++.h> using namespace std; int main() { string s; …… 题解列表 2021年12月23日 0 点赞 0 评论 449 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:使用 reverse 函数将字符串反序。#include<bits/stdc++.h> using namespace std; int main(){ string s,temp;…… 题解列表 2021年12月23日 0 点赞 0 评论 449 浏览 评分:0.0
1206: 字符串问题 摘要:这题就是字符串逆序,使用 reverse 函数。#include<bits/stdc++.h> using namespace std; int main(){ string s; …… 题解列表 2021年12月23日 0 点赞 0 评论 430 浏览 评分:0.0
1687: 数据结构-字符串连接 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a>>b){ …… 题解列表 2021年12月23日 0 点赞 0 评论 458 浏览 评分:0.0
入门]自定义函数之数字后移 摘要:解题思路:解题思路:其实重点就再最后一条printf语句中的取余哪里,其余的读入数据就不多说了,通过for循环读入即可;来看一下这个运算符 % 的魅力吧。int a[10]={1,2,3,4,5,6,…… 题解列表 2021年12月23日 0 点赞 0 评论 520 浏览 评分:0.0
divmod(x, y)函数,集商和余数于一体 摘要: # a, b = divmod(x, y) divmod()函数会返回两个值,第一个为 x // y, 第二个返回值为 x % y MoneyVariety_lis =…… 题解列表 2021年12月24日 0 点赞 0 评论 896 浏览 评分:0.0