自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 关于中秋作业的一个小小的教程

注册这个其实相信大家都会输入输出格式以第一题为例子,求和。注意多组输入,而且以n=0结尾终止输入。#include<stdio.h>int main(void){ int n; while(scanf("%d", &n) != EOF && n != 0){ int sum = 0; for(int ...

2019-09-13 17:12:21 258 1

原创 牛客多校第一场 B.Integration

Integration传送门Bobo knows that Given n distinct positive integers , find the value of It can be proved that the value is a rational number . Print the result as .输入描述:The input consists of seve...

2019-07-19 17:46:02 235

原创 HDU - 1051 Wooden Sticks【LIS】

Wooden Sticks传送门题目There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It nee...

2019-06-02 18:24:13 194

原创 HDU - 6354 Everything Has Changed【计算几何】

Everything Has Changed传送门题目Edward is a worker for Aluminum Cyclic Machinery. His work is operating mechanical arms to cut out designed models. Here is a brief introduction of his work.Assume the o...

2019-06-02 17:55:32 225

原创 HDU - 6343 Graph Theory Homework 【水题】

Graph Theory Homework传送门题目There is a complete graph containing nnn vertices, the weight of the iii-th vertex is wiw_iwi​.The length of edge between vertex iii and jjj (i≠j)(i \neq j)(i̸​=j) is ⌊∣w...

2019-06-02 16:39:15 278

原创 R3_C_Team Tic Tac Toe

Team Tic Tac Toetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFarmer John owns 26 cows, which by happenstance all have names starting wi...

2019-03-14 20:17:14 194

原创 R3_D_Lemonade Line

Lemonade Linetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt’s a hot summer day out on the farm, and Farmer John is serving lemonade to...

2019-03-14 17:49:22 224

原创 R3_A_Out of Sorts

Out of Sortstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKeeping an eye on long term career possibilities beyond the farm, Bessie the c...

2019-03-14 17:38:46 193

原创 R2_F_Teleportation

Teleportationtime limit per test15 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputOne of the farming chores Farmer John dislikes the most is hauling around ...

2019-03-14 17:13:54 176

原创 R1_H_Mixing Milk

Mixing Milktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFarming is competitive business – particularly milk production. Farmer John fig...

2019-03-14 17:03:44 281

原创 R1_C_Mooyo Mooyo

Mooyo Mooyotime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWith plenty of free time on their hands (or rather, hooves), the cows on Farmer...

2019-03-14 16:51:27 137

原创 R1_A_The Bucket List

The Bucket Listtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFarmer John is considering a change in how he allocates buckets for milking...

2019-03-14 16:34:13 293

原创 S2_I_Marathon

Marathontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera takes part in the Berland Marathon. The marathon race starts at the stadium...

2019-03-14 15:53:07 175

原创 S1_B_Inna and New Matrix of Candies

Inna and New Matrix of Candiestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna likes sweets and a game called the “Candy Matrix”. Toda...

2019-03-14 14:58:52 265

原创 S1_H_Team

Teamtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNow it’s time of Olympiads. Vanya and Egor decided to make his own team to take part i...

2019-03-07 22:40:05 151

原创 训练赛3_J_Steps

Stepstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Vasya went out for a walk in the yard but there weren’t any of his friends o...

2019-03-04 22:57:39 163

原创 训练赛3_H_Roma and Changing Signs.md

Roma and Changing Signstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRoma works in a company that sells TVs. Now he has to prepare a re...

2019-03-04 22:57:03 177

原创 训练赛1_E_Lawnmower

Lawnmowertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a garden consisting entirely of grass and weeds. Your garden is describ...

2019-03-04 22:56:44 342

原创 R2_G_Snow Boots

题面G. Snow Bootstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt’s winter on the farm, and that means snow! There are NN tiles on the pa...

2019-02-21 22:14:39 166

原创 R2_C_Rest Stops

题面Rest StopsFarmer John and his personal trainer Bessie are hiking up Mount Vancowver. For their purposes (and yours), the mountain can be represented as a long straight trail of length LL meters (1...

2019-02-21 22:14:20 175

原创 R2_B_Hoofball

题面B. Hoofballtime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputIn preparation for the upcoming hoofball tournament, Farmer John is drillin...

2019-02-21 22:13:58 131

原创 R2_A_Taming the Herd

题面Taming the HerdEarly in the morning, Farmer John woke up to the sound of splintering wood. It was the cows, and they were breaking out of the barn again!Farmer John was sick and tired of the cows...

2019-02-21 22:13:40 346

原创 R1_I_Convention II

题面I. Convention IItime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDespite long delays in airport pickups, Farmer John’s convention for co...

2019-02-20 23:05:15 231

原创 R1_G_Back and Forth

题面G. Back and Forthtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFarmer John has two milking barns, each of which has a large milk tank...

2019-02-20 23:04:35 187

原创 R1_E_Convention

题面E. Conventiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputCows from all over the world are arriving at the local airport to attend t...

2019-02-20 23:04:07 173

原创 R1_B_Teamwork

题面For his favorite holiday, Farmer John wants to send presents to his friends. Since he isn’t very good at wrapping presents, he wants to enlist the help of his cows. As you might expect, cows are no...

2019-02-20 23:03:21 341

原创 HDU - 1514 Stars

题面Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher a...

2019-02-16 11:06:16 303

原创 CodeForces - 300C Beautiful Numbers

题面Vitaly is a very weird man. He’s got two favorite digits a and b. Vitaly calls a positive integer good, if the decimal representation of this integer only contains digits a and b. Vitaly calls a go...

2019-02-12 15:50:43 185

原创 HDU - 2710 Max Factor

题面To improve the organization of his farm, Farmer John labels each of his N (1 &lt;= N &lt;= 5,000) cows with a distinct serial number in the range 1…20,000. Unfortunately, he is unaware that the cow...

2019-02-12 15:15:29 129

原创 HDU - 5019 Revenge of GCD

题面In mathematics, the greatest common divisor (gcd), also known as the greatest common factor (gcf), highest common factor (hcf), or greatest common measure (gcm), of two or more integers (when at le...

2019-02-12 10:42:34 206

原创 HDU 6114 Chess

题面車是中国象棋中的一种棋子,它能攻击同一行或同一列中没有其他棋子阻隔的棋子。一天,小度在棋盘上摆起了许多車……他想知道,在一共N×M个点的矩形棋盘中摆最多个数的車使其互不攻击的方案数。他经过思考,得出了答案。但他仍不满足,想增加一个条件:对于任何一个車A,如果有其他一个車B在它的上方(車B行号小于車A),那么車A必须在車B的右边(車A列号大于車B)。现在要问问你,满足要求的方案数是多少。I...

2019-02-02 01:44:02 172

原创 Codeforces Round #536 (Div. 2) B. Lunar New Year and Food Ordering

题面B. Lunar New Year and Food Orderingoutputstandard outputLunar New Year is approaching, and Bob is planning to go for a famous restaurant — “Alice’s”.The restaurant “Alice’s” serves n kinds of fo...

2019-02-02 01:26:18 276

原创 POJ 2100 Graveyard Design

题面Graveyard DesignKing George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sections, each of which must be a square of ...

2019-01-15 12:10:39 341

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除