: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; float m,sum; scanf("%f%d",&m,&n); s…… 题解列表 2024年11月24日 0 点赞 1 评论 218 浏览 评分:9.9
字符串形式求解阶乘和数-C(一点小见解......) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fact(int num);int main(){ int num=0,j=0,sum…… 题解列表 2024年11月24日 0 点赞 0 评论 224 浏览 评分:0.0
A+B for Input-Output Practice (V) 摘要: #include using namespace std; int main() { int i=0,j=0; int N,n;…… 题解列表 2024年11月24日 0 点赞 0 评论 191 浏览 评分:0.0
后缀表达式的值!? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个栈,用于存储操作数 stack<long long> st;…… 题解列表 2024年11月24日 0 点赞 0 评论 207 浏览 评分:0.0
表达式括号匹配(stack),来看看吧,不用栈写法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符串变量ch,用于存储输入的字符串 string ch; …… 题解列表 2024年11月24日 0 点赞 0 评论 309 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 646 浏览 评分:8.0
报数问题 C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void f(int a[],int n){int m=0,j=n,i;for(i=0;n-m>1;i++) {if((i+1)%3=…… 题解列表 2024年11月25日 0 点赞 0 评论 299 浏览 评分:9.9
暴力枚举 #3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月25日 4 点赞 0 评论 667 浏览 评分:9.0
状态机模型DP #3067: 大盗阿福(C++) 摘要:# 大盗阿福 N家店铺 同时偷两家报警系统会启动 不惊动警察的情况下,最多可以得到多少现金 **状态 :** 对于当前店铺 [偷 | 不偷] **状态定义 :** f[i…… 题解列表 2024年11月25日 0 点赞 0 评论 163 浏览 评分:0.0
数单词?数空格! 摘要:解题思路:空格的格数加一就是单词数注意事项:gets危险 所以用getline fgets也行参考代码:#include <iostream>using namespace std;int main(…… 题解列表 2024年11月25日 1 点赞 0 评论 156 浏览 评分:0.0