小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 609 浏览 评分:0.0
用筛法求之N内的素数。 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x): if x==2: return True else: …… 题解列表 2022年04月24日 0 点赞 0 评论 557 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): s=input() print(s) print()while True: s=…… 题解列表 2022年04月24日 0 点赞 0 评论 643 浏览 评分:0.0
The 3n + 1 problem 摘要:解题思路:注意事项:参考代码:def f(x): c=1 while x!=1: if x%2==0: x=x//2 else: …… 题解列表 2022年04月24日 0 点赞 0 评论 468 浏览 评分:0.0
C++进制转换输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<oct<<…… 题解列表 2022年04月24日 0 点赞 0 评论 677 浏览 评分:0.0
编写题解 1116: IP判断 摘要:解题思路:注意事项:参考代码:while True: s=input() if s=='End of file': break a,b,c,d=s.sp…… 题解列表 2022年04月24日 0 点赞 0 评论 985 浏览 评分:0.0
学生信息管理系统 摘要:解题思路:注意事项:参考代码:第一章 总则 第一条 为了维护学校正常的教育教学秩序,培养德、智、体全面发展的社会主义事业建设者和接班人,根据教育部《普通高等学校学生管理规定》、《高等学校学生行为准…… 题解列表 2022年04月24日 0 点赞 0 评论 1053 浏览 评分:0.0
编写题解 1248: 简单的事情 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;unsigned long long int jiecheng(int n){ if(n…… 题解列表 2022年04月24日 0 点赞 0 评论 642 浏览 评分:0.0
编写题解 1249: 简单编码 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main() { string s; wh…… 题解列表 2022年04月24日 0 点赞 0 评论 669 浏览 评分:0.0
题解 大小写转换 简单易懂 解题思路:1.利用while函数输入字符串s2.当输入的字符串为Endoffile跳出循环3.用islower函数用于判断字符是否为小写字母(a-z)4.inttoupper(intc)把小写字母转换为大写字母参考代码:```cpp#include#includeusingnamespacestd;i 题解列表 2022年04月24日 0 点赞 0 评论 750 浏览 评分:0.0