自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【无标题】

图片

2023-04-24 20:52:54 31

原创 【无标题】

2022-01-04 11:48:57 239

原创 【无标题】

2022-01-04 09:36:40 95

原创 蓝桥杯2013年第四届C/C++ A组蓝桥杯省赛真题——大臣的旅费

题目描述很久以前,T王国空前繁荣。为了更好地管理国家,王国修建了大量的快速路,用于连接首都和王国内的各大城市。为节省经费,T国的大臣们经过思考,制定了一套优秀的修建方案,使得任何一个大城市都能从首都直接或者通过其他大城市间接到达。同时,如果不重复经过大城市,从首都到达每个大城市的方案都是唯一的。J是T国重要大臣,他巡查于各大城市之间,体察民情。所以,从一个城市马不停蹄地到另一个城市成了J最常做的事情。他有一个钱袋,用于存放往来城市间的路费。聪明的J发现,如果不在某个城市停下来修整,在连续行进过程中,

2021-04-10 18:04:41 313

原创 UAV12096 The SetStack Computer

Problem:Background from Wikipedia: “Set theory is a branch of mathematics created principally by the German mathematician Georg Cantor at the end of the 19th century. Initially controversial, set theory has come to play the role of a foundational theory i

2021-03-20 18:20:22 76

原创 UAV10815 Andy‘s First Dictionary

Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of thinking up all the words himself, he has a briliant idea. From his bookshelf

2021-03-19 23:17:27 70

原创 UVA10474 Where is the Marble?

UVA10474 Where is the Marble?problem:Raju and Meena love to play with Marbles. They have got a lot ofmarbles with numbers written on them. At the beginning, Raju wouldplace the marbles one after another in ascending order of the numberswritten on th

2021-03-18 23:16:47 79

原创 Maya Calendar(年月日换算问题)

Problem:During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long year, called Haab, which had 19 months. Each o

2021-02-21 16:25:15 282

原创 Pyramid of Glasses(模拟)

Problem:Mary has just graduated from one well-known University and is now attending celebration party. Students like to dream of a beautiful life, so they used champagne glasses to construct a small pyramid. The height of the pyramid is n. The top level c

2021-02-21 01:24:19 257

原创 二分查找

二分查找问题Problem:Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants usin

2021-02-19 18:03:40 81

原创 关于while时用EOF遇上scanf“%c”空格被吸收的问题

很多时候我会需要用上while+EOF,但是同时也会遇上scanf("%c”,&a)回车被吸收的问题,在我试过几种回车被吸收的方法后,发现只有**在while的执行语句第一行加上getchar()**是我觉得比较好的方法。#include<stdio.h>int main(void) { char ch; while((scanf("%c",&ch))!=EOF) { getchar(); printf("%d

2020-06-16 19:46:21 291

空空如也

空空如也

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

TA关注的人

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