原创 Stone game(2019 ICPC 上海站)

Stone game 題目描述: CSL loves stone games. He has nnn stones; each has a weight aia_iai​. CSL wants to get some stones

原创 無題II

題目鏈接 題目描述: 這是一個簡單的遊戲,在一個n*n的矩陣中,找n個數使得這n個數都在不同的行和列裏並且要求這n個數中的最大值和最小值的差值最小。 輸入: 輸入一個整數T表示T組數據。 對於每組數據第一行輸入一個正整數n(1<=n<=1

原创 傳紙條

鏈接:https://ac.nowcoder.com/acm/contest/1116/L 來源:牛客網   時間限制:C/C++ 1秒,其他語言2秒 空間限制:C/C++ 131072K,其他語言262144K 64bit IO Fo

原创 Looooops

題目描述: A Compiler Mystery: We are given a C-language style for loop of type for (variable = A; variable != B; variab

原创 不要打開

聽說今天發博客送勳章,來打個卡 各位程序員快樂啊

原创 小小粉刷匠

題目鏈接   題目描述 "lalala,我是一個快樂的粉刷匠",小名一邊快活地唱着歌,一邊開心地刷着牆",興致突然被打斷,"小名,你今天如果刷不完這一棟樓的牆,那麼你就等着被炒魷魚吧",老闆聲嘶力竭的吼着。苦惱的小名因爲不想被炒魷魚,所以

原创 Antenna Placement

題目描述: The Global Aerial Research Centre has been allotted the task of building the fifth generation of mobile phone net

原创 Courses(hdu 1083)

題目描述: Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task i

原创 Counting Sequences I(2019 ICPC 上海站)

題目描述: We define a sequence a1,a2,…,an{a_1, a_2, …, a_n}a1​,a2​,…,an​ of positive integer numbers, as perfect sequen

原创 1708: 01串也瘋狂之光棍也有伴

題目描述: 話說春節那天,小明和曉明在實驗室刷題。刷着刷着小明覺得累了,就邀請曉明一起看春晚。曉明覺得小明很無聊,不想理小明,但是小明很會磨嘴皮子,曉明耐不住小明的胡嘴蠻纏,於是和小明一起看起春晚來。 小明頓時覺得倍兒爽啊! 可是一看,“

原创 Stone game(ICPC 上海站)

Stone game 題目描述: CSL loves stone games. He has nnn stones; each has a weight aia_iai​. CSL wants to get some stones

原创 B. Light bulbs(2019 ICPC上海站)

題目描述: There are NNN light bulbs indexed from 000 to N−1N-1N−1. Initially, all of them are off.A FLIP operation swit

原创 L. Digit sum(2019 icpc上海站)

題目描述: A digit sum Sb(n)S_b(n)Sb​(n) is a sum of the base-bbb digits of nnn. Such as S10(233)=2+3+3=8S_{10}(233) = 2

原创 Drainage Ditches(最大流)

題目描述: Every time it rains on Farmer John’s fields, a pond forms over Bessie’s favorite clover patch. This means tha

原创 Girls' research

題目描述: One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation