cout<<366<<endl;elsecout<<365<<endl;return0; } B - Second Best 求序列中第22大的数在原序列中是第几个元素。 双指针记录最大值和次大值,扫一遍更新即可。 #include<iostream>intn,a[105];usingnamespacestd;intmain(){ cin>>n;intmaxp=1,smaxp=0;for(inti=1;i<=n;++i)cin>>a[i];for...
AtCoder Beginner Contest 365 A - Leap Year (abc365 A)题目大意给定年份,判断该年是否是闰年。解题思路根据闰年的两个条件,注意判断即可。神奇的代码 #include <bits/stdc++.h> using namespace std; using LL = long long; int main(void) { ios::sync_with_stdio(false); cin.tie(0); cout.tie...
void solve() { int x=read(); if((x%4)!=0) { cout << "365" << endl; } else { if(x%100==0) { if(x%400==0) { cout << "366" << endl; } else { cout << "365" << endl; } } else { cout << "366" << endl; } } } B - Second Best 找序列第二大的数。
Toyota Programming Contest 2024#8(AtCoder Beginner Contest 365) - AtCoderatcoder.jp/contests/abc365 A题 思路:判断闰年 AC代码: #include <bits/stdc++.h> using namespace std; #define double long double #define int long long typedef long long i64; typedef unsigned long long ull; typedef...
[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 365 被硬控实录万睿朋 立即播放 打开App,流畅又高清100+个相关视频 更多 341 1 01:01:11 App AtCoder Beginner Contest 363 没AK唐完了! 363 0 01:02:38 App AtCoder Beginner Contest 401 | 训得少就会变菜! 410 0 37:57 App AtCoder Beginner Contest 364 469 0 01:13...
We will hold AtCoder Beginner Contest 366. Contest URL: https://atcoder.jp/contests/abc366 Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20240810T2100&p1=248 Duration: 100 minutes Writer: MtSaka, sotanishy Tester: Nyaan, math957963 Rated range: ~ 1999 The point...
AtCoder Beginner Contest 169(题解) AtCoder Beginner Contest 169(题解)E - Count Median结论题给定nnn个xi∈[ai,bi]x_i\in[a_i,b_i]xi∈[ai,bi],求中位数的个数。定义:k=⌊n2⌋k=\lfloor\dfrac{n}{2}\rfloork=⌊2n⌋,对a,ba,ba,b进行排序后,为ak+1a_{k+1}ak...
·AtCoder Beginner Contest (ABC) 这是最频繁且最简单的入门赛,通常情况下每月至少举行2次。2019年4月27日(含)之前,每场比赛共4题,时长100分钟,满分1000分且Rating超过1199的选手不计Rating值。自2019年5月19日起改版升级为6道题目,时长不变,满分2100分且Rating值超过1999的选手不计Rating值。改版之后比赛质量...
AtCoder Beginner Contest 056(ABCD) AtCoder Beginner Contest 056(ABCD) A - HonestOrDishonest 思路:特判 B - NarrowRectanglesEasy 思路:讨论特判。 C - Go Home 思路:贪心,求和第一个大于等于x xx的i ii即为答案。 D - No Need 思路:考虑答案是排序后的某个前缀。