1086A+B(2)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); long long a,b; while(n) { scanf(…… 题解列表 2024年05月29日 0 点赞 0 评论 488 浏览 评分:0.0
1087A+B(3)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)) { if(a==0…… 题解列表 2024年05月29日 0 点赞 0 评论 202 浏览 评分:0.0
1088A+B(4)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(scanf("%d",&n)&&n!=0) { long long arr[n]; …… 题解列表 2024年05月29日 0 点赞 0 评论 175 浏览 评分:0.0
1089A+B(5)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=0) { int m; scanf("%d"…… 题解列表 2024年05月29日 0 点赞 0 评论 178 浏览 评分:0.0
1090A+B(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(scanf("%d",&n)!=EOF) { long long arr[n]; …… 题解列表 2024年05月29日 0 点赞 0 评论 364 浏览 评分:0.0
1091A+B(7)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { pr…… 题解列表 2024年05月29日 0 点赞 0 评论 242 浏览 评分:0.0
1092A+B(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n) { int sum=0; …… 题解列表 2024年05月29日 0 点赞 0 评论 202 浏览 评分:0.0
BFS模版题(很模版) 摘要: ```cpp #include using namespace std; typedef pair PII; const int N=1000; int n,end_day; c…… 题解列表 2024年05月30日 0 点赞 0 评论 205 浏览 评分:0.0
c语言简单思路,拿走不谢 摘要:分两部分分析:1,4个数中选3个。2,选出来的3个排列组合。ok,思路清晰了下面废话不多说直接展示。参考代码:#include <stdio.h> int main() { int a[4],…… 题解列表 2024年05月30日 0 点赞 0 评论 362 浏览 评分:0.0
编写题解 2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool zs(int n){ for(int i=2;i<n/2+1;i++) {…… 题解列表 2024年05月30日 0 点赞 0 评论 163 浏览 评分:0.0