优质题解 三个数找最大值(三种思路) 摘要:解题思路1: 如果说要解这道题,还是很简单粗暴的: 本题的三个数比大小的要求就是,比另外两个数都大,即a>b和a>c同时满足。同时满足就是和:&&if (a>b&&a>c)…… 题解列表 2022年04月24日 6 点赞 39 评论 15173 浏览 评分:9.7
编写题解 1116: IP判断 摘要:解题思路:注意事项:参考代码:while True: s=input() if s=='End of file': break a,b,c,d=s.sp…… 题解列表 2022年04月24日 0 点赞 0 评论 614 浏览 评分:0.0
编写题解 1115: DNA 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a,b=map(int,input().split()) x=a//2 for i i…… 题解列表 2022年04月24日 0 点赞 0 评论 481 浏览 评分:9.9
矩阵对角线求和 摘要:解题思路: 打代码注意事项: 不要把键盘敲坏参考代码:#include<stdio.h>int main(){ int x, y, sum1 = 0, sum2 = 0, a[3][3]; …… 题解列表 2022年04月24日 0 点赞 0 评论 324 浏览 评分:8.4
C++进制转换输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<oct<<…… 题解列表 2022年04月24日 0 点赞 0 评论 389 浏览 评分: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 评论 273 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): s=input() print(s) print()while True: s=…… 题解列表 2022年04月24日 0 点赞 0 评论 419 浏览 评分:0.0
用筛法求之N内的素数。 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x): if x==2: return True else: …… 题解列表 2022年04月24日 0 点赞 0 评论 366 浏览 评分:0.0
小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 376 浏览 评分:0.0
for的引用破解密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; cin>>s; for(auto…… 题解列表 2022年04月24日 0 点赞 0 评论 367 浏览 评分:0.0