二维数组的转置 摘要:#include<bits/stdc++.h> using namespace std; void f(int a[4][4]) { for(int i=1;i<=3;i++) { …… 题解列表 2024年11月21日 1 点赞 0 评论 570 浏览 评分:9.9
自定义函数处理素数 摘要:#include<bits/stdc++.h> using namespace std; bool is_prime(int x) { if(x<=1)return false; …… 题解列表 2024年11月21日 2 点赞 0 评论 1060 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:#include<bits/stdc++.h> using namespace std; int main() { int a[12][12]; int n;cin>>n; …… 题解列表 2024年11月21日 0 点赞 0 评论 570 浏览 评分: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 评论 883 浏览 评分: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 评论 498 浏览 评分: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 评论 763 浏览 评分:9.9
3022: 流感传染 呜呜呜呜呜呜呜呜呜呜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和m,以及sum用于计数 …… 题解列表 2024年11月20日 0 点赞 0 评论 561 浏览 评分: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 评论 608 浏览 评分:9.9
3033: 放苹果 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明,用于存储测试用例数量和两个整数m和n int t, n…… 题解列表 2024年11月20日 1 点赞 0 评论 770 浏览 评分:6.0
题目 3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要: #include <bits/stdc++.h> #define int long long #define debuga(v, i) cout << #v << "[" << i << "]…… 题解列表 2024年11月20日 0 点赞 0 评论 608 浏览 评分:0.0