摘要:
C. Queue in the Train There are 𝑛 seats in the train's car and there is exactly one passenger occupying every seat. The seats are numbered from 1 to
閱讀全文
posted @ 2019-11-13 11:47
qscqesze
閱讀(410)
推薦(0)
摘要:
D2. The World Is Just a Programming Task (Hard Version) This is a harder version of the problem. In this version, 𝑛≤300000. Vasya is an experienced d
閱讀全文
posted @ 2019-11-12 18:15
qscqesze
閱讀(467)
推薦(0)
摘要:
B. Grow The Tree Gardener Alexey teaches competitive programming to high school students. To congratulate Alexey on the Teacher's Day, the students ha
閱讀全文
posted @ 2019-11-12 16:08
qscqesze
閱讀(348)
推薦(0)
摘要:
A. Integer Points DLS and JLS are bored with a Math lesson. In order to entertain themselves, DLS took a sheet of paper and drew 𝑛 distinct lines, gi
閱讀全文
posted @ 2019-11-12 15:35
qscqesze
閱讀(345)
推薦(0)
摘要:
A. Ivan the Fool and the Probability Theory Recently Ivan the Fool decided to become smarter and study the probability theory. He thinks that he under
閱讀全文
posted @ 2019-11-12 14:41
qscqesze
閱讀(433)
推薦(1)
摘要:
E. Connected Components? You are given an undirected graph consisting of n vertices and edges. Instead of giving you the edges that exist in the graph
閱讀全文
posted @ 2019-11-07 18:26
qscqesze
閱讀(279)
推薦(0)
摘要:
C. Sum Balance Ujan has a lot of numbers in his boxes. He likes order and balance, so he decided to reorder the numbers. There are 𝑘 boxes numbered f
閱讀全文
posted @ 2019-11-07 17:17
qscqesze
閱讀(422)
推薦(0)
摘要:
D. 0 1 MST Ujan has a lot of useless stuff in his drawers, a considerable part of which are his math notebooks: it is time to sort them out. This time
閱讀全文
posted @ 2019-11-07 17:08
qscqesze
閱讀(823)
推薦(1)
摘要:
C. Tile Painting Ujan has been lazy lately, but now has decided to bring his yard to good shape. First, he decided to paint the path from his house to
閱讀全文
posted @ 2019-11-07 16:50
qscqesze
閱讀(717)
推薦(3)
摘要:
B2. Character Swap (Hard Version) This problem is different from the easy version. In this version Ujan makes at most 2𝑛 swaps. In addition, 𝑘≤1000,
閱讀全文
posted @ 2019-11-07 16:43
qscqesze
閱讀(574)
推薦(0)
摘要:
B1. Character Swap (Easy Version) This problem is different from the hard version. In this version Ujan makes exactly one exchange. You can hack this
閱讀全文
posted @ 2019-11-07 16:37
qscqesze
閱讀(463)
推薦(0)
摘要:
A. Maximum Square Ujan decided to make a new wooden roof for the house. He has 𝑛 rectangular planks numbered from 1 to 𝑛. The 𝑖 th plank has size ?
閱讀全文
posted @ 2019-11-07 16:33
qscqesze
閱讀(418)
推薦(0)
摘要:
F. Equalizing Two Strings You are given two strings s and t both of length n and both consisting of lowercase Latin letters. In one move, you can choo
閱讀全文
posted @ 2019-11-05 15:58
qscqesze
閱讀(618)
推薦(1)
摘要:
E. Yet Another Division Into Teams There are n students at your university. The programming skill of the i th student is ai. As a coach, you want to d
閱讀全文
posted @ 2019-11-05 15:52
qscqesze
閱讀(620)
推薦(0)
摘要:
D. Binary String Minimizing You are given a binary string of length n (i.?e. a string consisting of n characters '0' and '1'). In one move you can swa
閱讀全文
posted @ 2019-11-05 15:49
qscqesze
閱讀(309)
推薦(0)
摘要:
C. Platforms Jumping There is a river of width n. The left bank of the river is cell 0 and the right bank is cell n+1 (more formally, the river can be
閱讀全文
posted @ 2019-11-05 15:46
qscqesze
閱讀(403)
推薦(0)
摘要:
B. Minimize the Permutation You are given a permutation of length n. Recall that the permutation is an array consisting of n distinct integers from 1
閱讀全文
posted @ 2019-11-05 15:39
qscqesze
閱讀(523)
推薦(1)
摘要:
A. Payment Without Change You have a coins of value n and b coins of value 1. You always pay in exact change, so you want to know if there exist such
閱讀全文
posted @ 2019-11-05 15:36
qscqesze
閱讀(451)
推薦(0)
摘要:
F. Daniel and Spring Cleaning While doing some spring cleaning, Daniel found an old calculator that he loves so much. However, it seems like it is bro
閱讀全文
posted @ 2019-11-04 01:52
qscqesze
閱讀(424)
推薦(0)
摘要:
E. Hyakugoku and Ladders Hyakugoku has just retired from being the resident deity of the South Black Snail Temple in order to pursue her dream of beco
閱讀全文
posted @ 2019-11-03 17:47
qscqesze
閱讀(541)
推薦(0)
摘要:
D. Shichikuji and Power Grid Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follows: There are 𝑛 new citie
閱讀全文
posted @ 2019-11-03 14:17
qscqesze
閱讀(445)
推薦(0)
摘要:
C. Constanze's Machine Constanze is the smartest girl in her village but she has bad eyesight. One day, she was able to invent an incredible machine!
閱讀全文
posted @ 2019-11-02 22:20
qscqesze
閱讀(435)
推薦(0)
摘要:
F. Tree Factory Bytelandian Tree Factory produces trees for all kinds of industrial applications. You have been tasked with optimizing the production
閱讀全文
posted @ 2019-11-02 17:22
qscqesze
閱讀(188)
推薦(0)
摘要:
E. Rock Is Push You are at the top left cell (1,1) of an n×m labyrinth. Your goal is to get to the bottom right cell (n,m). You can only move right or
閱讀全文
posted @ 2019-11-02 14:03
qscqesze
閱讀(352)
推薦(0)
摘要:
B2. TV Subscriptions (Hard Version) The only difference between easy and hard versions is constraints. The BerTV channel every day broadcasts one epis
閱讀全文
posted @ 2019-11-02 13:17
qscqesze
閱讀(195)
推薦(0)
摘要:
A. Forgetting Things Kolya is very absent minded. Today his math teacher asked him to solve a simple problem with the equation 𝑎+1=𝑏 with positive i
閱讀全文
posted @ 2019-11-01 14:36
qscqesze
閱讀(267)
推薦(0)
摘要:
D. Power Products You are given n positive integers a1,…,an, and an integer k≥2. Count the number of pairs i,j such that 1≤i using namespace std; cons
閱讀全文
posted @ 2019-11-01 00:31
qscqesze
閱讀(238)
推薦(0)
摘要:
C. p binary Vasya will fancy any number as long as it is an integer power of two. Petya, on the other hand, is very conservative and only likes a sing
閱讀全文
posted @ 2019-11-01 00:04
qscqesze
閱讀(223)
推薦(0)
摘要:
F. Bits And Pieces 題面 You are given an array 𝑎 of 𝑛 integers. You need to find the maximum value of 𝑎𝑖|(𝑎𝑗&𝑎𝑘) over all triplets (𝑖,𝑗,𝑘) su
閱讀全文
posted @ 2019-09-03 14:56
qscqesze
閱讀(353)
推薦(0)
摘要:
G. Polygons Description You are given two integers 𝑛 and 𝑘. You need to construct 𝑘 regular polygons having same circumcircle, with distinct number
閱讀全文
posted @ 2019-09-02 00:20
qscqesze
閱讀(336)
推薦(0)
摘要:
B. Tokitsukaze and Mahjong time limit per test1 second memory limit per test256 megabytes Tokitsukaze is playing a game derivated from Japanese mahjon
閱讀全文
posted @ 2019-07-29 01:29
qscqesze
閱讀(384)
推薦(0)
摘要:
D2. RGB Substring (hard version) inputstandard input outputstandard output The only difference between easy and hard versions is the size of the input
閱讀全文
posted @ 2019-07-27 16:21
qscqesze
閱讀(452)
推薦(0)
摘要:
D. Yet Another Subarray Problem You are given an array $a_1, a_2, \dots , a_n$ and two integers $m$ and $k$. You can choose some subarray $a_l, a_{l+1
閱讀全文
posted @ 2019-07-27 15:30
qscqesze
閱讀(355)
推薦(0)
摘要:
C. Array Splitting You are given a sorted array 𝑎1,𝑎2,…,𝑎𝑛 (for each index 𝑖 1 condition 𝑎𝑖≥𝑎𝑖?1 holds) and an integer 𝑘. You are asked to d
閱讀全文
posted @ 2019-07-27 14:50
qscqesze
閱讀(251)
推薦(0)
摘要:
機器學習算法講堂(一) 十分鐘入門機器學習算法競賽 比賽地址:https://www.kaggle.com/c/new york city taxi fare prediction import pandas as pd import numpy as np http://pandas.pydata
閱讀全文
posted @ 2018-09-01 15:35
qscqesze
閱讀(1386)
推薦(0)
摘要:
相關下載地址: 鏈接: https://pan.baidu.com/s/1LqFWMoLzaKkuahwnZNIsZg 密碼: 3ybi
閱讀全文
posted @ 2018-07-22 11:20
qscqesze
閱讀(944)
推薦(1)
摘要:
最近的任務是寫一個多線程的東西,就得接觸多線程隊列了,我反正是沒學過分布式的,代碼全憑感覺寫出來的,不過運氣好,代碼能夠work= = 話不多說,直接給代碼吧,一個多消費者,多生產者的模式。假設我的任務是求隊列的中位數是啥,每消費10000次的時候,我要知道中位數是什么。 至于加不加鎖,這個看你了,
閱讀全文
posted @ 2018-01-21 11:41
qscqesze
閱讀(7358)
推薦(1)
摘要:
https://vjudge.net/contest/202940 overview 不斷更新
閱讀全文
posted @ 2017-12-05 14:31
qscqesze
閱讀(862)
推薦(0)
摘要:
中午醒來后就滾去公司讀了幾篇論文,讀的頭腦不清醒。然后聽說最近有一個動漫電影上線了,就一拍即合,和吳隊長一起去看了。 看之前和吳隊長都不知道這個電影是什么,就知道是個日本動漫,不過看到廣告語說:“去年看了你的名字,今年你就得去看煙花”,在我的心里面,我就覺得這個電影應該就和你的名字應該是一個地位了吧
閱讀全文
posted @ 2017-12-02 23:20
qscqesze
閱讀(3491)
推薦(5)
摘要:
提交代碼被leader批判了一波。。。。 好好學習,天天向上。 http://zh google styleguide.readthedocs.io/en/latest/google cpp styleguide/contents/
閱讀全文
posted @ 2017-11-29 19:33
qscqesze
閱讀(857)
推薦(0)