A-Buildings 保存第一个建筑的高度,然后只要后面出现比它高的输出即可。 #include <bits/stdc++.h> #define int long long using namespace std; const int N=1e6+10,mod=1e9+7; signe
A - Buildings (atcoder.jp) 读题模拟即可 代码: void solve() { cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; int m=a[1]; for(int i=2;i<=n;i++) { if(a[i]>m) { cout<<i<<endl; return; } } cout<<-1<<endl; } B - AtCoder Amusement Park 阅读理解题,如果当前位置...
AtCoder Beginner Contest 353 - VP 记录 Preface这次比赛蛮简单的,就是黄题有点多,少了区分度。而且Sigma Problem Another Sigma Problem Yet Another Sigma Problem 是什么奇妙的题目名称?Sigma Problem Another Sigma Problem Yet Another Sigma ProblemYet...
AtCoder Beginner Contest 353 A 至 G 題讲解 by dreamoon https://www.bilibili.com/video/BV1UJ4m1P7SU/ AtCoder Beginner Contest 353 A~G 超详细讲解 https://www.bilibili.com/video/BV1Km421p7Re/ Σ 大赛——AtCoder Beginner Contest 353 https://www.bilibili.com/video/BV1kt421u7XK/ https...
\sum\limits_{i = 1}^{n - 1}\sum\limits_{j = i + 1}^{n} f(a_i, a_j)。 分析 由于给出的函数f(x, y)是将两个数字相加,而加法是可交换的,那么f(x, y) = f(y, x)。 然后求和要求的是任意两个不同数字经过函数运算后相加的结果,那么任意交换给出的数字是不会改变答案的。
题解与反思 第一次打Rating,被薄纱!!! A - Buildings #include using namespace std; typedef long long LL; const int mod = 998244353; const int N_牛客网_牛客在手,offer不愁
[AtCoder Beginner Contest 365](https://atcoder.jp/contests/abc365) 题解 ABC365的比赛题解,我做出G题了,但暂时不发,需要的请私信 私信前请看:https://www.luogu.com.cn/paste/lowgb1lx ### A - Leap Year [翻](https://blog.csdn.net/qianzhima2012/article/details/141070004?spm=1001.2014.3001....
AtCoder Beginner Contest 352 题解与反思 这次的题目比较正常吧,就是感觉做题太少了,思路打不开,有些不是很难的题目想不到。 D - Permutation Subsequence 滑动窗口的经典题目。 首先要弄明白,怎样才能选出来好索引序列。只要对应的元素集合是sort()之后是一个公差为1等差数列即可,我们可以考虑对原来的数组进行...
AtCoder Beginner Contest 053(ABCD) A - ABC/ARC 思路:特判。 B - A to Z String 思路: A A A取第一次, Z Z Z取最后一次. C - X: Yet Another Die Game 思路:显然用 6 , 5 6,5 6,5来回是最优的,然后特判一下即可。 D - Card Eater ...
Smeke has decided to participate in AtCoder Beginner Contest (ABC) if his current rating is less than1200, and participate in AtCoder Regular Contest (ARC) otherwise. You are given Smeke's current rating,x. PrintABCif Smeke will participate in ABC, and printARCotherwise. ...