运用strtok函数和动态分配函数解决 摘要:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char str[5000]; ch…… 题解列表 2023年11月24日 0 点赞 0 评论 339 浏览 评分:0.0
发工资咯(C语言) 摘要:解题思路:使用贪心算法在每次循环迭代中,定义整数变量 salary 用于存储每个人的工资,并初始化一个计数变量 count 用于记录需要的纸币数量。同时,定义一个整数数组 money,其中包含了货币纸…… 题解列表 2023年11月24日 0 点赞 0 评论 832 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:def leap(year): if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0: …… 题解列表 2023年11月24日 1 点赞 0 评论 290 浏览 评分:10.0
大小写转换(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[100]; while(gets(ch)){//while多…… 题解列表 2023年11月25日 0 点赞 0 评论 552 浏览 评分:0.0
字符串处理回文数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ int n; int sum=0,…… 题解列表 2023年11月25日 0 点赞 0 评论 353 浏览 评分:9.9
题解 2768: 与圆相关的计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double r; scanf("%lf",&r); pr…… 题解列表 2023年11月25日 0 点赞 0 评论 420 浏览 评分:0.0
题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2023年11月25日 0 点赞 0 评论 279 浏览 评分:0.0
王牌花色详细解法,新手小白也能懂 摘要:# 王牌花色 **思路很重要,细心也很重要** ## 这里要多次多组输入,这就增加了难度,同时它也降低了难度,因为我们只需手动输入一个王牌花色字符,再用玩家的牌的花色与输入的王牌花色字符匹…… 题解列表 2023年11月25日 0 点赞 0 评论 427 浏览 评分:0.0
题解 2754: 其他基本数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ cout<<sizeof(bool)<<' …… 题解列表 2023年11月25日 0 点赞 0 评论 511 浏览 评分:9.9
题解 2753: 浮点型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ cout<<sizeof(float)<<'…… 题解列表 2023年11月25日 0 点赞 0 评论 312 浏览 评分:9.9