
题解
ACM集训队训练赛后题解
Plentaude
这个作者很懒,什么都没留下…
展开
-
A - Anastasia and pebbles
题意:一天有两个口袋,每个口袋最多装k块鹅卵石,且每个口袋只能装同一类型的鹅卵石。问搜集所有的鹅卵石所需的最短天数。题解:每种鹅卵石对k求余,看每种需要多少个口袋可以搜集完,最后求和,然后求出需要多少天。#include<iostream>#include<cstdio>using namespace std;int a[1000000];int main()...原创 2020-04-09 21:49:15 · 194 阅读 · 0 评论 -
2020牛客寒假算法基础集训营2
文章目录A 做游戏A 做游戏题目描述牛牛和 牛可乐在玩石头剪刀布。众所周知,石头剪刀布的规则是这样的:在一局游戏中,双方各自出石头、剪刀、布其一。胜负关系如下牛牛和 牛可乐进行了多轮游戏, 牛牛总共出了 A 次石头,B 次剪刀,C 次布;牛可乐总共出了 X 次石头,Y 次剪刀,Z 次布。 你需要求出 牛牛最多获胜多少局。...原创 2020-02-06 22:15:23 · 229 阅读 · 0 评论 -
2020牛客寒假算法基础集训营1
文章目录honoka和格点三角形kotori和bangdreamhanayo和米饭rin和快速迭代honoka和格点三角形题目描述:honoka最近在研究三角形计数问题。她认为,满足以下三个条件的三角形是“好三角形”。1.三角形的三个顶点均为格点,即横坐标和纵坐标均为整数。2.三角形的面积为1 。3.三角形至少有一条边和x轴或y轴平行。honoka想知道,在平面中选取一个大小为 n...原创 2020-02-04 21:11:29 · 443 阅读 · 0 评论 -
山师训练赛第四场
文章目录H - TriangleI - Birthday ParadoxK - Reverse a SubstringL - Game with Telephone NumbersH - TriangleMr. Frog has n sticks, whose lengths are 1,2, 3⋯⋯n respectively. Wallice is a bad man, so he doe...原创 2020-02-03 11:18:27 · 291 阅读 · 0 评论 -
山师训练赛第一场
文章目录A - AB - BE - EA - APetya is a big fan of mathematics, especially its part related to fractions. Recently he learned that a fraction a/b is called proper iff its numerator is smaller than its de...原创 2020-01-27 14:12:25 · 173 阅读 · 0 评论 -
山师第二场训练赛
文章目录G - 【The__Flash】的水题G - 【The__Flash】的水题You are given two strings of equal length ss and tt consisting of lowercase Latin letters. You may perform any number (possibly, zero) operations on these s...原创 2020-01-27 13:06:46 · 204 阅读 · 0 评论 -
凉脾的比赛题解
A - DRM MessagesDRM Encryption is a new kind of encryption. Given an encrypted string (which we’ll call a DRM message), the decryption process involves three steps: Divide, Rotate and Merge. This pro...原创 2020-01-20 12:03:23 · 184 阅读 · 0 评论 -
凉肝的比赛题解
文章目录A - Mezo Playing ZomaE - DeadlineG - HQ9+A - Mezo Playing ZomaToday, Mezo is playing a game. Zoma, a character in that game, is initially at position x=0x=0. Mezo starts sending nn commands to Z...原创 2020-01-15 22:34:15 · 331 阅读 · 0 评论 -
新生训练赛001题解
G - You're Given a String...原创 2019-12-19 21:04:33 · 266 阅读 · 0 评论 -
新生训练赛002题解
J - 新年快乐Frog Wa has many frogs, so he can hear GuaGuaGua every day. But one day a flappy bird ate his frogs, so Frog Wa decided to build a fence to protect his precious frogs. Frog Wa told you four p...原创 2020-01-02 21:54:58 · 610 阅读 · 0 评论 -
凉心的比赛(一)题解
A - 最小的二进制数B - 线段的包含关系C - 地下城还有劳拉E - 法法在分配工作F - 法法要穿过大门原创 2020-01-09 23:24:03 · 517 阅读 · 0 评论