用string类直接秒了 摘要:```cpp #include #include using namespace std; int main() { string str; cin >> str; …… 题解列表 2024年02月12日 15 点赞 0 评论 1465 浏览 评分:10.0
NOIP提高组2007 摘要:参考代码:#include<stdio.h> char s[150]; int p1, p2, p3; char c; char now, left, right; int main() …… 题解列表 2024年02月13日 1 点赞 0 评论 634 浏览 评分:10.0
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年02月18日 1 点赞 0 评论 390 浏览 评分:10.0
c++:通过ascll码来整合出数字之后拼凑起来即可 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdlib.h>#include<math.h>using namespace std;int main(){ i…… 题解列表 2024年02月24日 0 点赞 0 评论 566 浏览 评分:10.0
更小的数---暴力尝试,简单易看懂 摘要:解题思路:本题时间要求不那么严格,双重循环也能过注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; typede…… 题解列表 2024年02月26日 0 点赞 0 评论 1078 浏览 评分:10.0
谁考了第k名C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k,j,m; scanf("%d %d",&n,&k); int a[n+1],i…… 题解列表 2024年02月26日 2 点赞 0 评论 714 浏览 评分:10.0
2767: 计算多项式的值 摘要:解题思路: 先思考数学中的式子,拿到C语言中该如何解决 a,b,c,d,x 是我们自己输入的是给定的值 X的三次方就是3个X相乘 X*X*X 那就好解决咯参考代码:#include<s…… 题解列表 2024年02月26日 2 点赞 0 评论 1418 浏览 评分:10.0
编写题解 2792: 三角形判断 摘要:解题思路:两个较短的边之和大于最长的那条边注意事项:参考代码:a=list(map(int,input().split()))a.sort()if a[0]+a[1]>a[2]: print(&…… 题解列表 2024年02月27日 0 点赞 0 评论 730 浏览 评分:10.0
整数删除-能看懂系列 解题思路:第一份代码为通过的代码,借鉴于其处的方法,这边有些大佬的代码可能不太好理解,所以写了这个比较详细的,希望对各位有用;另外这个题我自己也有方法,容易理解但较为繁琐也可惜有4个输出超限,有兴趣的可以试试优化第二份注意事项:参考代码:#include#include 题解列表 2024年03月02日 3 点赞 1 评论 1757 浏览 评分:10.0 编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n=input()for i in range(len(n)-1,-1,-1): print(n[i],end=' ')…… 题解列表 2024年03月02日 1 点赞 0 评论 636 浏览 评分:10.0 « 12...23242526272829...59185919 »
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n=input()for i in range(len(n)-1,-1,-1): print(n[i],end=' ')…… 题解列表 2024年03月02日 1 点赞 0 评论 636 浏览 评分:10.0