题解
文章平均质量分 88
包含usaco, codejam, kickstart等
Layomiiety°
这个作者很懒,什么都没留下…
展开
-
Primes and Queries - Google Kickstart 2021 Round D
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar原创 2021-07-12 17:54:59 · 247 阅读 · 0 评论 -
Square Free-Google Codejam 2021 Round 3
Square Free-Google Codejam 2021 Round 3第二题We have a matrix of square cells with R rows and C columns. We need to draw a diagonal in each cell. Exactly one of two possible diagonals must be drawn in each cell: the forward slash diagonal, which connects th原创 2021-06-09 16:25:40 · 259 阅读 · 1 评论 -
Rock Paper Scissors-Google Kickstart 2021 Round C
Rock Paper Scissors-Google Kickstart 2021 Round C第三题You and your friend like to play Rock Paper Scissors. Each day you play exactly 60 rounds and at the end of each day, you tally up the score from these 60 rounds.During each round, without any knowledg原创 2021-05-25 00:40:56 · 265 阅读 · 0 评论 -
Retiling-Google Codejam 2021 Round 2
Retiling-Google Codejam 2021 Round 2第四题Cody-Jamal’s latest artistic installment is a tiled kitchen floor that can be retiled to different patterns. The floor consists of a matrix of R rows and C columns of square tiles. Each tile is reversible, one side原创 2021-05-16 12:57:05 · 289 阅读 · 0 评论 -
Truck Delivery - Google Kickstart Round B 2021
Truck Delivery - Google Kickstart Round B 2021第四题Charles is a truck driver in the city of Googleland. Googleland is built in form of a tree with N nodes where each node represents a city and each edge represents a road between two cities. The cities are原创 2021-05-13 18:43:25 · 343 阅读 · 0 评论 -
Double or Noting - Google Codejam 2021 Round 1C
Double or Noting - Google Codejam 2021 Round 1C第三题You are given a starting non-negative integer S and an ending non-negative integer E. Both S and E are given by their binary representation (that is, they are given written in base 2). Your goal is to tra原创 2021-05-03 23:49:53 · 194 阅读 · 0 评论 -
Digit Blocks-Google Codejam 2021 Round 1B
Digit Blocks-Google Codejam 2021 Round 1B 第三题You are going to build N towers of B cubic blocks each, one block at a time. Towers are built bottom-up: the i-th block to be placed in a tower ends up as the i-th from the bottom. You need to decide where to原创 2021-05-02 22:51:17 · 265 阅读 · 2 评论 -
Hacked Exam-Google Codejam 2021 Round 1A
Hacked Exam-Google Codejam 2021 Round 1A第三题There is an exam with Q(1 ≤\leq≤ Q ≤\leq≤ 120)true or false questions. The correct answer to each question is either T or F. Each student taking the exam selects either T or F for each question, and the student’原创 2021-05-02 00:44:11 · 302 阅读 · 0 评论 -
L-Shaped Plots - Google Kick Start 2021 Round A
Google Kick Start 2021 Round A:L-Shaped PlotsGiven a grid of R rows and C columns each cell in the grid is either 0 or 1.A segment is a nonempty sequence of consecutive cells such that all cells are in the same row or the same column. We define the len原创 2021-03-22 23:26:28 · 289 阅读 · 0 评论 -
Rabbit House- Google Kick Start 2021 Round A
Google Kick Start 2021 Round A: Rabbit HouseBarbara got really good grades in school last year, so her parents decided to gift her with a pet rabbit. She was so excited that she built a house for the rabbit, which can be seen as a 2D grid with R rows and原创 2021-03-24 23:16:11 · 272 阅读 · 0 评论 -
Checksum-Google Kick Start 2021 Round A
Kick Start 2021 Round A:ChecksumGrace and Edsger are constructing a N×N boolean matrix A. The element in i-th row and j-th column is represented by Ai,j. They decide to note down the checksum (defined as bitwise XOR of given list of elements) along each原创 2021-03-24 23:59:19 · 225 阅读 · 0 评论 -
K-Goodness String-Google Kick Start 2021 Round A
Google Kick Start 2021 Round A:K-Goodness StringCharles defines the goodness score of a string as the number of indices i such that Si≠SN−i+1 where 1≤i≤N/2 (1-indexed). For example, the string CABABC has a goodness score of 2 since S2≠S5 and S3≠S4. Char原创 2021-03-22 22:52:30 · 352 阅读 · 0 评论 -
USACO 2021 二月铂金组第一题 No Time To Dry
USACO 2020~2021 二月铂金组第一题No Time To DryBessie has recently received a painting set, and she wants to paint the long fence at one end of her pasture. The fence consists of N consecutive 1-meter segments (1≤N≤2⋅105). Bessie has N different colors available原创 2021-03-14 17:51:42 · 563 阅读 · 0 评论 -
USACO 2020~2021 February Contest GOLD 题解(3)
USACO 2020~2021 三月黄金组 题解(3)3. Count The CowsAs is typical, Farmer John’s cows have spread themselves out along his largest pasture, which can be regarded as a large 2D grid of square “cells” (picture a huge chessboard).The pattern of cows across the p原创 2021-03-07 23:50:44 · 776 阅读 · 1 评论 -
USACO 2020~2021 February Contest GOLD 题解(2)
USACO 2020~2021 三月黄金组 题解(2)2. Modern Art 3Having become bored with standard 2-dimensional artwork (and also frustrated at others copying her work), the great bovine artist Picowso has decided to switch to a more minimalist, 1-dimensional style. Her late原创 2021-03-07 16:10:09 · 726 阅读 · 0 评论 -
USACO 2020~2021 February Contest GOLD 题解(1)
USACO 2020~2021 三月黄金组 题解(1)1. Stone Game1. Stone GameBessie and Elsie are playing a game with N (1≤N≤105) piles of stones, where the i-th pile has ai stones for each 1≤i≤N (1≤ai≤106). The two cows alternate turns, with Bessie going first.First, Bessie原创 2021-03-07 15:42:01 · 1006 阅读 · 0 评论