编写题解 1084: 用筛法求之N内的素数(so easy) 摘要:####莫名其妙的就写完了,说实话我都不知道怎么写出来的,就这么莫名其妙的过了。可能是素数题写多了,脑袋没动,手就帮忙写完了。 ``` #include using namespace std;…… 题解列表 2023年02月13日 0 点赞 0 评论 224 浏览 评分:0.0
编写题解 3012: 分苹果 摘要:编写题解 3012: 分苹果 ``` #include using namespace std; int main() { int n; cin>>n; cout…… 题解列表 2023年02月13日 0 点赞 0 评论 219 浏览 评分:0.0
合法c标识符 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[30]; int i; int flag=0; gets(a); if((a[0]>='a…… 题解列表 2023年02月14日 0 点赞 0 评论 226 浏览 评分:0.0
幂的末尾解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); int i; int r=1; for(i=1;i…… 题解列表 2023年02月14日 0 点赞 0 评论 173 浏览 评分:0.0
2811: 救援(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * n = int(input()) t0 = 0 while True: try: x,y,num=map(in…… 题解列表 2023年02月14日 0 点赞 0 评论 183 浏览 评分:0.0
开关灯的详细解答 摘要:#include<stdio.h>int main(){ int m,n,i,j; scanf("%d %d",&n,&m); //输出顺序不能错 int a[n+1]; /*第一个人的行为*/ f…… 题解列表 2023年02月14日 0 点赞 0 评论 220 浏览 评分:0.0
Python求解背包问题 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())w=[0]*(n+1)v=[0]*(n+1)for i in range(1,n+1): w[i],v[i]…… 题解列表 2023年02月14日 0 点赞 0 评论 164 浏览 评分:0.0
字符串逆序输出(C语言) 摘要:两种方法: 法一:字符串数组 冒泡排序法 #include<stdio.h> #include<stdlib.h> void sort_bubble(char arr[], int len) …… 题解列表 2023年02月14日 0 点赞 0 评论 93 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:I=int(input())if 0<I<=100000: j=I*0.1elif 100000<I<=200000: j=100000*0.1+(I-100…… 题解列表 2023年02月14日 0 点赞 0 评论 478 浏览 评分:0.0
Python解决-动态规划 摘要:解题思路:注意事项:参考代码:V = int(input())n = int(input())dp = [0]*(V+1)c = [0]*(n+1)for i in range(1, n+1): …… 题解列表 2023年02月14日 0 点赞 0 评论 188 浏览 评分:0.0