AtCoder Beginner Contest 353A-E+G https://www.bilibili.com/video/BV1wt421M7Z5/ https://www.bilibili.com/video/BV1TZ421774X/ AtCoder Beginner Contest 353 CDEG讲解 https://www.bilibili.com/video/BV1rm421u7cs/ AtCoder Beginner Contest 353, f题写懵了 https://www.bilibili.com/video/...
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 阅读理解题,如果当前位置不够一个团队那就开走,然后模拟即可 void solve() {...
staticinlinevoidsolve(){intn,x;cin>>n;inta;cin>>a;for(inti=2;i<=n;i++){cin>>x;if(x>a){cout<<i<<endl;return;}}cout<<-1<<endl;} B 题意:一个包厢最多6人,人群分几波进入包厢,一起来的人只能进入同一个包厢,求最多要几个报包厢把人装完。 写得很蠢,用了deque和vector来模拟人数...
题意 AtCoder Beginner Contest 353 abc353 G - Merchant Takahashi 有n(1≤n≤2e5)n(1≤n≤2e5) 个城镇和 m(1≤m≤2e5)m(1≤m≤2e5) 个活动依次发生,第 i(1≤i≤m)i(1≤i≤m) 个活动在第 ti(1≤ti≤n)ti(1≤ti≤n) 个城镇举办,你如果参加则可获得 pi(1≤pi≤1e13)pi(1≤pi≤1...
// Problem: E - Yet Another Sigma Problem// Contest: AtCoder - AtCoder Beginner Contest 353// URL: https://atcoder.jp/contests/abc353/tasks/abc353_e// Memory Limit: 1024 MB// Time Limit: 2000 ms/// Powered by CP Editor (https://cpeditor.org)#include<bits/stdc++.h>usingnamespac...
1、今晚(5月17日)20点在B站开始 AtCoder 初学者竞赛 353 比赛题解直播讲解 2、本周日(5月19日)晚上19点在B站开始 AtCoder Beginner Contest 354的题解直播讲解 3、观看方式: 复制下方链接或直接扫描二维码,PC端建议使用chrome浏览器 https://live.bilibili.com/21371611?live_from=84002 ...
AtCoder Beginner Contest 355 A B C D AtCoder Beginner Contest 354 A B C D AtCoder Beginner Contest 353 A B C D AtCoder Beginner Contest 352 A B C D AtCoder Beginner Contest 351 A B C D AtCoder Beginner Contest 350 A B
Atcoder Beginner Contest 144 E - Gluttony(二分) 题目链接:https://atcoder.jp/contests/abc144/tasks/abc144_e 题意: 有n个人,每个人吃一单位东西的时间为ai,现在有n份食物,每份食物的份量为fi单位。 每个人必须对应一份食物,一个人只允许对应一份食物,一份食物也只允许对应一个人。你可以安排由哪个...
AtCoder Beginner Contest 052 ABCD题 A - Two Rectangles Time limit : 2sec /Memory limit : 256MB Score :100points Problem Statement There are two rectangles. The lengths of the vertical sides of the first rectangle areA, and the lengths of the horizontal sides of the first rectangle areB. ...
[AtCoder Beginner Contest 077]D-Small Multiple Time limit : 2sec Memory limit : 256MB Problem Statement Find the smallest possible sum of the digits in the decimal notation of a positive multiple of K. Constraints 2≤K≤105 K is an integer. In......