题解列表
编写题解 2831: 画矩形
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=2e5……
编写题解 1234: 检查一个数是否为质数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,sum=0,t=1; &n……
题解 1234: 检查一个数是否为质数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){&nb……
题解 1234: 检查一个数是否为质数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long ……
c++++++++++++++++++++++++
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;struct node { ch……
2838: 有趣的跳跃解题
摘要:解题思路:不进行排序,1~n-1作为数组下标,命中的该元素直接设置为1(默认值为0),如果已经为1了,重新设置直接可以打印Not jolly,退出程序。最后对1-~n-1的数组元素直接判断,看值是否都……