题解列表
C语言简单暴力实现,注意要特判x=1的情况
摘要:解题思路:从2开始进行遍历,如果能被整除就说明不是素数,注意循环条件不能<=x,只能<x注意事项:在c语言里面是没有bool 类型的,如果在函数里面直接返回bool类型会报错,建议返回数字类型,或者用……
信息学奥赛一本通T1177-奇度单增序列-题解(各语言代码)
摘要:**python**
```python
input()
print(*sorted(filter(lambda x:x&1,map(int,input().split()))),sep=','……
lf-Hello,world! 普通解法
摘要:解题思路:注意事项:参考代码: #include int main(){ int a; char s; while(scanf("%d",&a)!=EOF){……
用了C++中的vector数组
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> arr;bool method1(in……
震惊,缺少两行代码居然是ac和超时的区别!!
摘要:解题思路:注意事项:A^B=x成立时有A^x=B参考代码:#includeusing namespace std;int n,m,l,r,x;const int maxm=100003;int a[m……
提公因式+前缀和(c++)
摘要:```cpp
#include
using namespace std;
typedef long long ll;
const int N=2e5+5;
int n;
ll a[N],s……
利用<math.h>,pow()函数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i; int l,m,n; for(i=100;i<1……