04 2024 档案
摘要:A link 把最后三位取成数字,判断是否小于 ,大于 ,不等于 。 点击查看代码 #include<bits/stdc++.h> using namespace std; char s[10]; int ans; signed main(){ cin >> s+1;
阅读全文
摘要:A link 其实,有人赢比赛,就有人输比赛,一加一减,不管进行多少场比赛,最后所有人的分数和一定是 。 那么知道 个人的分数和,就可以知道第 个人的了。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n;
阅读全文
摘要:A link 这个题就是讨论。 首先,如果没有 就一定可以。 如果有 。 如果长度为 一定不行。 的个数为奇数不行。 如果为偶数 有一个小点:如果是 个 且连在一起,不行,因为不能开相邻的。 点击查看代码 #include<bits/stdc++.h
阅读全文
摘要:A 这个题是一个暴力 判断是否全在对角线上或下,两次二重循环即可,如果是,直接乘起来。 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; const int mo = 1e9+7; int n; int
阅读全文
摘要:A link 这道题就先输出整个的 ,再输出剩一个两个的。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; signed main(){ cin >> n; int t = n/3; for(int i = 1;i <
阅读全文
摘要:A link 很简单 遍历,判断模 是否为 ,如果为 ,输出 。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,k; int a[105]; signed main(){ cin >> n
阅读全文