纪念品分组,左右两端向中间靠拢(C语言代码) 摘要:解题思路:先将价格进行排序,然后考虑分组,分组用左右两边向中间靠拢注意事项:排序用qsort耗时短;靠拢到最后可能还会多出一个,记得讨论参考代码:#include <stdio.h> #includ…… 题解列表 2023年01月30日 0 点赞 0 评论 579 浏览 评分:9.9
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(){ int f; float c; scanf("%d",&f); c =(f-32)…… 题解列表 2023年01月30日 0 点赞 0 评论 327 浏览 评分:0.0
3119: 亲戚(c++代码) 摘要:```cpp #include using namespace std; int n,m,a,b; char c; struct qq { int fa,cnt; }; qq…… 题解列表 2023年01月30日 0 点赞 0 评论 498 浏览 评分:9.9
1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:```cpp #include #include using namespace std; int main() { char a[80]; gets(a); …… 题解列表 2023年01月30日 0 点赞 0 评论 371 浏览 评分:9.9
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:```cpp #include using namespace std; int main() { enum caiquan { shitou,bu,ji…… 题解列表 2023年01月30日 0 点赞 0 评论 511 浏览 评分:9.9
1480: 模拟计算器 摘要:```cpp #include using namespace std; int main() { int a,b; char c; cin>>a>>b>>c; …… 题解列表 2023年01月30日 0 点赞 0 评论 366 浏览 评分:9.9
菜鸟首次尝试(python)超简单解法 摘要:解题思路:注意事项:参考代码:n=int(input())for _ in range(n): x,y=map(int,input().split()) def realsum(n): …… 题解列表 2023年01月29日 0 点赞 0 评论 394 浏览 评分:8.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,ans=0; scanf("%d",&n); int a[n]; int b[n]; for(i…… 题解列表 2023年01月29日 0 点赞 0 评论 638 浏览 评分:6.0
二分法,求阶乘 摘要:解题思路:通过规律发现:5!-> end 0 number is 110-> end 0 number is 215->end 0 number is 3…………注意事项:参考代码:import os…… 题解列表 2023年01月29日 0 点赞 0 评论 688 浏览 评分:0.0
1003密码破译 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char arr[20]={0};//定义一个随机长度的字符串数组 sc…… 题解列表 2023年01月29日 0 点赞 2 评论 292 浏览 评分:9.3