各个编译器都是正确答案,不知道为什么就是不给我过 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[100]; int i; while(gets(str)!=NULL) …… 题解列表 2022年04月23日 0 点赞 0 评论 437 浏览 评分:0.0
加强版 公约公倍 最简单 摘要:解题思路:改编的注意事项:一定要跳出循环参考代码:#include<stdio.h>int main(){int i,a,b,min,k;scanf("%d %d",&a,&b);min=a<b?a:…… 题解列表 2022年04月23日 0 点赞 0 评论 570 浏览 评分:0.0
A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum=0; cin>>n; whi…… 题解列表 2022年04月24日 0 点赞 0 评论 360 浏览 评分:0.0
for的引用破解密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; cin>>s; for(auto…… 题解列表 2022年04月24日 0 点赞 0 评论 429 浏览 评分:0.0
小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 449 浏览 评分:0.0
用筛法求之N内的素数。 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x): if x==2: return True else: …… 题解列表 2022年04月24日 0 点赞 0 评论 427 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): s=input() print(s) print()while True: s=…… 题解列表 2022年04月24日 0 点赞 0 评论 482 浏览 评分: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 评论 335 浏览 评分:0.0
C++进制转换输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<oct<<…… 题解列表 2022年04月24日 0 点赞 0 评论 460 浏览 评分: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 评论 762 浏览 评分:0.0