范围只有333333,直接枚举所有的组合情况,超过333333即break。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); intn; cin >> n; vector<LL> a; set<LL> ans; for(LL i =1;1; i = i *...
AtCoder Beginner Contest 333 B - Pentagon# 难度: ⭐# 题目大意# 给定一个正五边形, 其顶点为ABCDE; 给定端点a, b, c, d; 问a, b之间的距离和c, d之间的距离是否相等; 解题思路# 两个端点之间的距离就看两个端点之间隔了几条边就行; 并且因为是五边形, 隔x条边和隔5-x条边是等价的; 神秘...
#include <bits/stdc++.h> using namespace std; typedef long long LL; void solve() { int n; cin >> n; LL now = 1; vector<LL> a; for (int i = 0; i < 15; i ++ ) { a.push_back(now); now = now * 10 + 1; } vector<LL> v; for (int i = 0; i < 15; i ++ ...
AtCoder Beginner Contest 333 A~F AC-Panda 敲代码的老熊猫 A.Three Threes(循环) 题意: 给出一个正整数N,要求输出N个N 分析: 按要求输出即可 代码: #include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; for (int i = 1; i <= n; i++) { cout << n;...
Atcoder Beginner Contest 333 讲解Atcoder Beginner Contest 333 讲解蒟蒻小史编辑于 2023年12月18日 13:03 更正F题 的转移方程(漏乘系数):分享至 投诉或建议评论 赞与转发3 0 0 0 0 回到旧版 顶部登录哔哩哔哩,高清视频免费看! 更多登录后权益等你解锁...
专栏/Atcoder Beginner Contest 333 讲解 Atcoder Beginner Contest 333 讲解 2023年12月18日 13:034浏览· 2喜欢· 0评论 视频地址: Atcoder Beginner Contest 333 讲解 蒟蒻小史 粉丝:82文章:1 关注更正F题 的转移方程(漏乘系数):分享到: 投诉或建议...
·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 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 193 部分题解 E - Oversleeping 求是否存在\(t\)满足\(t=t_1(mod (2X+2Y)) and t=t_2(mod (P+Q))\) 注意到\(Q\)和\(Y\)非常小,直接枚举套个\(exCRT\)就行了(虽然赛场上没看出来,\(exCRT\)也忘了记得快速乘...
We will hold AtCoder Beginner Contest 137. Contest URL: https://atcoder.jp/contests/abc137 Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20190810T2100&p1=248 Duration: TBD (around 2 hours) Number of Tasks: 6 writer:potetisensei HIR180 Drafear yokozuna57 DEGwer ...