上一页 1 2 3 4 5 6 ··· 8 下一页
  2023年9月8日
摘要: #include<bits/stdc++.h> using namespace std; #define int long long const int maxn=1e6+5; int n,q,a[maxn],maxx,b[maxn],c[maxn]; inline int lowbit(int a 阅读全文
posted @ 2023-09-08 21:07 IR101 阅读(16) 评论(0) 推荐(0)
  2023年9月5日
摘要: include<bits/stdc++.h> using namespace std; //void solve(){ //no.1.1 // int n; // cin>>n; // for(int i=1;i<=n;i++){ // for(int j=1;j<=n;j++){ // cout< 阅读全文
posted @ 2023-09-05 10:02 IR101 阅读(52) 评论(0) 推荐(0)
摘要: diamond1: #include<bits/stdc++.h> using namespace std; void solvequare(){ int n,m; cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cout<<"*"<<" 阅读全文
posted @ 2023-09-05 09:50 IR101 阅读(15) 评论(0) 推荐(0)
  2023年9月2日
摘要: 欧拉函数: #include<bits/stdc++.h> using namespace std; #define ll long long #define int long long ll n,x; const int mod=1e9+7; signed main(){ cin>>n; whil 阅读全文
posted @ 2023-09-02 15:46 IR101 阅读(21) 评论(0) 推荐(0)
  2023年8月25日
摘要: A. Tales of a Sort 题意:dddd 思路:由于操作次数可以任取一个成立的,那么我们就可以把所有数字改成相等的,然后排序后与原数组对比 diamond: #include<bits/stdc++.h> #define deb(x) cout << #x << " = " << x < 阅读全文
posted @ 2023-08-25 20:19 IR101 阅读(27) 评论(0) 推荐(0)
  2023年8月12日
摘要: A. Alien Sunset 题意:给定n个时间设定,每个时间设定给H T R,H为一天的长度为H小时,T代表太阳从T时升起,R时落,问最早的一个时辰在所有时间设定里都是晚上的那一刻是哪一时刻 思路:直接枚举答案,判断这一时间点是否在所有时间设定下都是黑天,我们预处理每一个设定下的白天区间或者夜晚 阅读全文
posted @ 2023-08-12 15:35 IR101 阅读(21) 评论(0) 推荐(0)
摘要: A. Ace Arbiter 题意:乒乓球11分制比赛,换发制,发球顺序是ABBAABBAABB这种,裁判按照时间顺序随机爆出比分,左边是发球方的比分,然后问哪个给出的比分是错误的 思路:先根据x+y分数判断是哪一仑,然后判断是左边是A还是B,然后判断当前分数与上一个分数是否符合规则,遇到11则结束 阅读全文
posted @ 2023-08-12 14:57 IR101 阅读(22) 评论(0) 推荐(0)
摘要: A. Digits Are Not Just Characters 题意:给一个串s,然后给n个串si,问si与s相比,哪个更大,与字典序不同,假设s为aabb134,字母的大小相比一样,但数字不同,数字是看他转为10进制的大小,aabb98小于s 思路:相同则跳过,不同,若是字母,直接判断,若是数 阅读全文
posted @ 2023-08-12 13:07 IR101 阅读(22) 评论(0) 推荐(0)
  2023年8月5日
摘要: A. Dalton the Teacher 题意:懂得都懂 思路:直接记录有几个不高兴的,给他们互相换换即可 diamond: #include<bits/stdc++.h> using namespace std; #define int long long const int mod=1e9+7 阅读全文
posted @ 2023-08-05 14:49 IR101 阅读(22) 评论(0) 推荐(0)
  2023年8月3日
摘要: H. 唔...这个我真的能做到吗。 题意:有两种温度的水,一种是热水h度的,一种是c度的冷水,倒水的顺序是这样的,热,冷,热,冷,热,冷,最后的水温是所有杯水加起来的平均值,比如倒了7杯热的,6杯凉的。$t=(7 * h+6 * c)/(6+7)$,问倒水最少多少次,可以让温度最接近H度 思路:如果 阅读全文
posted @ 2023-08-03 19:45 IR101 阅读(22) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页