测试数据是不是有问题?明明是非空集合,却要判断空集为0的情况。 摘要:``` #include #include #include #define int long long using namespace std; const int N …… 题解列表 2024年12月25日 0 点赞 0 评论 450 浏览 评分:0.0
字符串反转C语言题解 摘要:解题思路:使用字符串函数strlen获得字符串长度注意事项:记得加上预处理命令#include<string.h>参考代码:#include<stdio.h>#include <string.h>in…… 题解列表 2024年12月25日 1 点赞 0 评论 1101 浏览 评分:0.0
正经分解,非暴力解题 摘要:解题思路:注意事项:参考代码://解决方式还有其他更加好想的,这里只是讲一讲我的逻辑分析过程/*为了好看我把空格当成0 00*0********0***00* 需要两个for循环,因为如果是一个for…… 题解列表 2024年12月25日 0 点赞 1 评论 683 浏览 评分:0.0
哈哈哈哈哈哈哈呃 摘要:解题思路: 背包模板题罢了,很简单注意事项:参考代码:#include"bits/stdc++.h" using namespace std; …… 题解列表 2024年12月26日 0 点赞 0 评论 485 浏览 评分:0.0
Python方法求根 摘要:参考代码:from math import * a,b,c=map(int,input().split()) m=b**2-4*a*c if m>=0: n=sqrt(m) …… 题解列表 2024年12月26日 1 点赞 0 评论 744 浏览 评分:0.0
计算浮点数相除的余数 摘要:解题思路:注意事项:参考代码:num1,num2 = map(float,input().split())print('%g'%(num1%num2))…… 题解列表 2024年12月26日 0 点赞 0 评论 645 浏览 评分:0.0
1866: 三位数反转 摘要:解题思路:切片注意事项:参考代码:while True: try: a = input() print(a[::-1]) except: brea…… 题解列表 2024年12月26日 0 点赞 0 评论 747 浏览 评分:0.0
[编程入门]结构体之时间设计 极简利用函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int days(int i){ int t=0; int num=0; int a[13]={0,31,28,31,…… 题解列表 2024年12月26日 0 点赞 0 评论 736 浏览 评分:0.0
火焰 烧尽 摘要:解题思路: 完全背包问题注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int n; in…… 题解列表 2024年12月26日 1 点赞 0 评论 318 浏览 评分:0.0
最普通的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int strcmp_(char a[],char b[]){ int len1,len2; …… 题解列表 2024年12月27日 0 点赞 0 评论 304 浏览 评分:0.0