原创 1153A A. Serval and Bus

It is raining heavily. But this is the first day for Serval, who just became 3 years old, to go to the kindergarten

原创 1154C C. Gourmet Cat(枚舉)

Polycarp has a cat and his cat is a real gourmet! Dependent on a day of the week he eats certain type of food: on M

原创 1152A A. Neko Finds Grapes

On a random day, Neko found n treasure chests and m keys. The i-th chest has an integer ai written on it and the j-

原创 定理證明(2050 Programming Competition - Warmup)

Problem Description 現在我們有n個定理,並且這n個定理是等價的,也就是說從任意一個定理出發,都可以推出其他所有的定理。 例如 定理1:有上界的實數集合必有上確界 定理2:有界實數列必有收斂子列 定理3:單調有界

原创 c語言將兩個遞增的順序表合併爲一個遞減的順序表

eg:順序表A:1 3 5 7 順序表B:2 4 6 8 合併後的表C:8 7 6 5 4 3 2 1 **思路:**從後往前遍歷順序表A和B,如果當前A表的數大於等於B表的數,則將A表的數存入C,A的元素下標往前移一位,否則,將

原创 cf1214B B. Badges

B. Badges time limit per test1 second memory limit per test512 megabytes inputstandard input

原创 cf1214A A. Optimal Currency Exchange

A. Optimal Currency Exchange time limit per test1.5 seconds memory limit per test512

原创 cf1214C C. Bad Sequence

C. Bad Sequence time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard o

原创 cf1208A A. XORinacci

A. XORinacci time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outp

原创 cf1208B B. Uniqueness

B. Uniqueness time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard ou

原创 hdu 6685 (2019年杭電多校賽第九場第6題,最少硬幣數目問題(枚舉加貪心))

Rikka with Coin Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submiss

原创 hdu 6693(19年杭電多校賽第十場第三題 (選擇1-n個物品,求最大期望值))

Valentine’s Day Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submiss

原创 hdu 6695 Welcome Party(19年杭電多校賽第十場第五題(貪心加枚舉))

Welcome Party Time Limit: 4000/4000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submissio

原创 cf1203C C. Common Divisors

C. Common Divisors time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstanda

原创 cf1203B B. Equal Rectangles

B. Equal Rectangles time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstand