题解列表

筛选

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a……

2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5;//定义小一点int a[N] ;int main(……

2839:石头剪刀布

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>;using namespace std;int main(){    int n,na,nb;    cin>>n>>na……

最容易想到的,两个for循环

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int n,ans=0,flag=0;……

HashMap键值对方法

摘要:解题思路:注意事项:参考代码:import java.util.HashMap;import java.util.Map;import java.util.Scanner;public class M……

2991: 八进制到十进制

摘要:解题思路:注意事项:参考代码:import java.lang.*; import java.util.Scanner; public class Main {    public st……

python优势-自带高精度

摘要:参考代码:while True:     n = int(input())     if n == 0:         break     if n % 17 == 0:  

手写一个快速排序算法

摘要:解题思路:快速排序算法注意事项:多关键字比较参考代码:#include <stdio.h> typedef struct _Point {     int x, y, z; } Point;……