06 2024 档案

摘要:A link …… 点击查看代码 #include<bits/stdc++.h> using namespace std; string s,t; signed main(){ cin >> s >> t; if(s == "AtCoder"&&t == "Land") cout << "Yes"; 阅读全文
posted @ 2024-06-18 21:17 不认命,就是哪吒的命! 阅读(6) 评论(0) 推荐(0) 编辑
摘要:A link 循环加每一个数,加到哪个数不能加了输出前一个数,注意如果加到最后还能加,记得输出n。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,m; int h[105],sum; signed main(){ cin 阅读全文
posted @ 2024-06-13 13:29 不认命,就是哪吒的命! 阅读(6) 评论(0) 推荐(0) 编辑
摘要:介绍 所谓等比数列,就是相邻两个数之间的比相等。 公比用q表示,第1项是a1,第n项是an,后一个数是前一个数的q倍。 求第nan=a1(n1)q 求和 \(s_n = \frac{a_1(1-q^n)}{1-q}\ 阅读全文
posted @ 2024-06-13 11:41 不认命,就是哪吒的命! 阅读(12) 评论(0) 推荐(0) 编辑
摘要:引言:__int128不能用cincoutscanfprintf。 快读 思想:把每一个字符读入,组成数字。 int read(){ int x = 0,y = 1;//x代表那个数的绝对值,y代表符号 char ch = getchar(); while(ch < 阅读全文
posted @ 2024-06-12 21:21 不认命,就是哪吒的命! 阅读(228) 评论(0) 推荐(0) 编辑
摘要:A link 把1 ~ l1r+1 ~ n部分顺序输出l~r部分逆序输出。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,l,r; signed main(){ cin 阅读全文
posted @ 2024-06-07 19:49 不认命,就是哪吒的命! 阅读(20) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示