传送门:https://atcoder.jp/contests/abc192 A: 题意:现在有X枚硬币,要使硬币数为100的倍数还需要多少枚硬币(如果X已经为100的倍数不算)。 1 #include <iostream> 2 #include <cstdio> 3 #in
https://atcoder.jp/contests/abc192/tasks/*果然还是我太菜了qwq*/D当长度为1时需要特判一下,因为以任何大于该数为底的值都为该数。长度大于1时直接二分就行。1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ...
abc192 E - Train Dijkstra past201912-open J - 地ならし Dijkstra past201912-open K - 巨大企業 Euler Tour abc163 F - path pass i DFS abc030 C - 飛行機乗り 二分探索 abc119 D - Lazy Faith 二分探索 abc128 E - Roadwork Misc abc143 D - Triangles 二分探索 abc144 E - Gluttony 二...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
AtCoder Context ABC 112 C Pyramid(金字塔) 运行要求 运行时间限制:2sec 内存限制:1024MB 原题链接 AtCoder Context ABC 112 C Pyramid(金字塔) 题目 在古代夜郎国,夜郎国的君王为了展示自己的权威,决定修建金字塔。这个金字塔坐落在平面直角坐标系中。金字塔的中心坐标为(Cx,Cy),高度为H。对于金字塔的其他坐标(...
记录刷atcoder..刚大一,希望我能在今年年底之前刷完所有abc的e题。然后刷abc的f和g题,然后去补arc,agc...因为现在没有建好github的博客,觉得贴吧是个好平台,就先记录在贴吧里了。不知道会有谁会注意到
一、题目 https://practice.contest.atcoder.jp/tasks/practice_2 二、分析 这里有三组测试用例。 第一组N = 26, Q = 1000。因为N * N < Q,所以可用冒泡排序法。具体代码参考官方给的Sample Code。 第二组N = 26, Q = 100,由于询问次数只有100次,可用插入排序法处理。每插入一个数据...
题目链接,https://atcoder.jp/contests/abc192/tasks/abc192_d。 题解 二分答案。 AC 参考代码 #include <bits/stdc++.h> using namespace std; //如果提交到OJ,不要定义 __LOCAL #define __LOCAL typedef long long ll; string s; ll m; bool mul(ll &x, ll y) { ll t=0; while (y) {...
Base n (AtCoder - abc192_d) 链接:VJ链接: https://vjudge.ppsucxtt.cn/problem/AtCoder-abc192_d原链接:https://atcoder.jp/contests/abc192/tasks/abc192_d?题意字符串长度为60的x 1e18的M求x在n进制下 转为10进制后 有多少个 小于等于 M 的不同的数一个数 不同的进制 会转换成不同的数,...
AtCoder Beginner Contest 192 A~D题解 技术标签:C++算法竞赛c++算法AtCoder 文章目录 [A - Star](https://atcoder.jp/contests/abc192/tasks/abc192_a) 题目大意 输入格式 输出格式 样例 分析 代码 [B - uNrEaDaBlE sTrInG](https://atcoder.jp/contests/abc192/tasks/abc192_b)...