自定义函数处理素数 摘要:#include<bits/stdc++.h> using namespace std; bool is_prime(int x) { if(x<=1)return false; …… 题解列表 2024年11月21日 2 点赞 0 评论 1064 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:#include<bits/stdc++.h> using namespace std; int main() { int a[12][12]; int n;cin>>n; …… 题解列表 2024年11月21日 0 点赞 0 评论 574 浏览 评分:9.9
矩阵对角线求和 摘要:#includeusing namespace std; int main() { int a[10][10]; for(int i=1;i<=3;i++) for(int…… 题解列表 2024年11月21日 0 点赞 0 评论 888 浏览 评分:9.9
格式化输出用printf #2609: 蓝桥杯2021年第十二届省赛真题-时间显示 ```#define_CRT_SECURE_NO_WARNINGS1#include#include#include#include#include#include#include#include#include#include#include#include#defineMAX0x3f3f3f3f# 题解列表 2024年11月21日 0 点赞 0 评论 506 浏览 评分:0.0
数组插入处理 摘要:#includeusing namespace std; int main() { int a[10]; for(int i=0;i>a[i]; int x,m;…… 题解列表 2024年11月21日 1 点赞 0 评论 771 浏览 评分:9.9
3022: 流感传染 呜呜呜呜呜呜呜呜呜呜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和m,以及sum用于计数 …… 题解列表 2024年11月20日 0 点赞 0 评论 569 浏览 评分:0.0
二级C语言-计负均正 摘要:#includeusing namespace std; int main() { int a[110]; for(int i=1;i>a[i]; double ans…… 题解列表 2024年11月20日 0 点赞 0 评论 618 浏览 评分:9.9
3033: 放苹果 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明,用于存储测试用例数量和两个整数m和n int t, n…… 题解列表 2024年11月20日 1 点赞 0 评论 780 浏览 评分:6.0
题目 3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要: #include <bits/stdc++.h> #define int long long #define debuga(v, i) cout << #v << "[" << i << "]…… 题解列表 2024年11月20日 0 点赞 0 评论 616 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 711 浏览 评分:2.0