题解列表

筛选

1086A+B(2)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); long long a,b; while(n) { scanf(……

1087A+B(3)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)) { if(a==0……

1088A+B(4)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(scanf("%d",&n)&&n!=0) { long long arr[n]; ……

1089A+B(5)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=0) { int m; scanf("%d"……

1090A+B(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(scanf("%d",&n)!=EOF) { long long arr[n]; ……

1091A+B(7)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { pr……

1092A+B(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){   int n;   scanf("%d",&n);   while(n)   {    int sum=0; ……

BFS模版题(很模版)

摘要: ```cpp #include using namespace std; typedef pair PII; const int N=1000; int n,end_day; c……

找规律,凑组合

摘要:解题思路:  找规律注意事项:  假后面只能更假假或真真,真后面只能更真假或假真可能的组合有「假,假,假」「真,真,假」「真,假,真」「假,真,真」参考代码:#include<stdio.h> lo……

测试数据有问题

摘要:错误样例样例:33 1 0预期:2实际:3注意事项:参考代码:贴上代码:right方法是错误的import java.util.Arrays; import java.util.Random; i……