题解列表

筛选

answer question

摘要:解题思路:anwer the whole question is answer like usual persnaly my own opinion is to caoculate the selut……

二级C语言-自定义函数 c++

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a[10005];double b[10005];double ans……

简单的a+b(c++代码)

摘要:解题思路:注意事项:参考代码:解法一:#include <cstdio> int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF)//也可以写成whil……

神奇的fansC++必过题解

摘要:解题思路:排序后判断注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main() {  bool d=1; int c=0,i,j,……

列表储存运算

摘要:解题思路:第一行应付格式注意事项:参考代码:n=input() a=list(map(int,input().split())) b=0 for i in a:     if i%2==0: ……

1053 简单的解法

摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:#include<stdio.h>int main(){ int sum=0;//定义 int i,a[11],b=0,c……

时间复杂度O(n)

摘要:解题思路:就是分成一层一层的(以高度为1为最底层),每一层需要砍的次数之和就是答案,显然最大不超过64层(long long的上限),所以时间复杂度就是O(n),系数最大不超过64注意事项:参考代码:……

质因数分解的模板题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;ll n,ans;void getans(……