WOJ1351-Olympic
来源:互联网 发布:linux图标为什么是企鹅 编辑:程序博客网 时间:2024/04/30 12:34
"One World One Dream" fully reflects the essence and the universal values of the Olympic spirit ---- Unity, Friendship, Progress, Harmony,
Participation and Dream. It expresses the common wishes of people all over the world, inspired by the Olympic ideals, to strive for a bright future
of Mankind. In spite of the differences in colors, languages and races, we share the charm and joy of the Olympic Games, and together we seek for the ideal of Mankind for peace. We belong to the same world and we share the same aspirations and dreams.
"One World One Dream" is a profound manifestation of the core concepts of the Beijing Olympic Games. It reflects the values of harmony connoted in the concept of "People's Olympics", the core and soul of the three concepts -- "Green Olympics, High-tech Olympics and People's Olympics".
While "Harmony of Man with Nature" and "Peace Enjoys Priority" are the philosophies and ideals of the Chinese people since ancient times in their pursuit of the harmony between Man and Nature and the harmony among people, building up a harmonious society and achieving harmonious
development are the dream and aspirations of ours. It is our belief that peace and progress, harmonious development, living in amity, cooperation and mutual benefit, and enjoying a happy life are the common ideals of the people throughout the world.
"One World, One Dream" is simple in expressions, but profound in meaning. It is of China, and also of the world. It conveys the lofty ideal of the
people in Beijing as well as in China to share the global community and civilization and to create a bright future hand in hand with the people from the rest of the world. It expresses the firm belief of a great nation, with a long history of 5,000 years and on its way towards modernization, that
is committed to peaceful development, harmonious society and people's happiness. It voices the aspirations of 1.3 billion Chinese people to
contribute to the establishment of a peaceful and bright world.
The English translation of the slogan is distinctive in sentence structure. The two "One"s are perfectly used in parallel, and the words "World" and "Dream" form a good match. The slogan is simple, meaningful, inspiring, and easy to remember, read and spread.
In Chinese, the word "tongyi", which means "the same", is used for the English word "One". It highlights the theme of "the whole Mankind lives in the same world and seeks for the same dream and ideal".
Please help us write a program to count down days to the upcoming Beijing 2008 Olympic games.
输入格式
The first line contains an integer T indicating the number of test cases.
In the next T lines, each line contains two integers "month" and "day" indicating one day in the future.
输出格式
Output T lines. Each line contains an integer indicating the number of days.
样例输入
13 15
样例输出
146
#include<stdio.h>int main(){int month[9]={0,31,29,31,30,31,30,31,8};int t,m,d,sum,i,j;scanf("%d",&t);while(t--){sum=0;scanf("%d %d",&m,&d);for(i=m;i<=8;i++){if(i==m)sum+=month[i]-d;elsesum+=month[i];}printf("%d\n",sum);}return 0;}
- WOJ1351-Olympic
- Olympic
- olympic网球
- The Olympic Games 奥林匹克运动会
- 奥林匹克运动员 Olympic Athletes
- 奥运遗产 Olympic legacy
- B. Olympic Medal
- The Olympic Games
- Olympic奖牌榜排序
- gym100818I - Olympic Parade
- csu1709 olympic parade
- CSU1888-Olympic Parade-STL
- Olympic Parade UVALive
- 2012.7.27 单词 Olympic hopefuls
- codeforces 401E. Olympic Games
- hdu 2390 Olympic Games【贪心】
- Lesson 37 The Olympic Games
- Beijing Olympic TV broadcast formally start
- C++不同发展方向的知识点储备
- week1
- 练习1: 使用公式C=(5/9)(F-32)打印下列华氏温度与摄氏温度对照表。
- linux id_table与of_match_table
- c++中的函数模板和类模板
- WOJ1351-Olympic
- 富文本编辑器UEditor的配置使用方法
- Java实现几种最短路径问题
- Git and Github
- 根据实例化bean用get,set获得所有属性值
- 数字和为sum的方法数 滴滴笔试题
- CentOS7下安装Scrapy
- 计算机图形学期刊和会议
- WOJ1372-Sorting Algorithm