题解列表

筛选

for 循环,多次记录

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

whlie循环解决数列求和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a=2.0,b=1.0,c,sum=0.0; int n; scanf("%d",&n); whi……

一行导包,两行代码

摘要:解题思路:from datetime import date year,month,day=map(int,input().strip().split()) print(date(year,mon……

[AC代码] 自适应辛普森求积分

摘要:解题思路:用自适应辛普森求多个圆在矩形ab内的并面积注意事项:参考:www.luogu.com.cn/problem/P4525www.luogu.com.cn/problem/SP8073将超出矩形……

题解 1020: [编程入门]猴子吃桃的问题

摘要:解题思路:从最后一天倒推结果注意事项:1 第10天没有吃 只计算9天2 设每一天的总数为a总数a=吃掉(a/2+1)+剩余aa存在迭代关系   总数a=(剩余aa+1)*2剩余aa是第二天的总数a3 ……

编写题解 1206: 字符串问题

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    string str;    c……

个人理解,希望能提供个思路

摘要:解题思路:①输入的整数值表示,从 1970 年 1 月 1 日 00:00:00 到当前时刻经过的毫秒数。这个数一般比较大,用long long;②不显示出年月日,只需要显示出时分秒即可,需要毫秒数转……

编写题解 1210: 小明A+B

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    int a,b;        ……