You're Not Late! You're Not Early

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_25333681/article/details/79945860

一首优美的小诗,来自Marie-Claire Kuja

这里写图片描述

Do you think you are going No Where in Life?
你认为,你的人生无处安放吗?
STOP!
停下来
Take a deep breathe
深呼吸
THINK!
想想
New York is threehours ahead of California, but that does not make California slow
纽约比加州早三小时,但加州的时间并没有变慢。
Cameroon is six hours ahead of New York but it does not make New York slow.
喀麦隆比纽约早六小时,纽约的时间也没有变慢。
Someone graduated from college at 22 but waited five years before securing a job.
有人22岁毕业,五年后稳定工作。
Someone became a CEO at 25 but died at 50.
有人25岁成为CEO,却在50岁去世。
Someone became a CEO at 50 but lived to 90 years.
有人知道50岁才当上CEO,可他能活到90岁。
Someone is still single,
有些人依然单身,
While another is married with children
同时有人早已结婚生子。
Absolutely, everyone in this world works based on their own time zone.
这世上,每个人本来就有自己的发展时区。
People around you might seem to be ahead of you.
有些人,看似走在你前面。
That’s total fine. Some are behind you.
这没所谓,也有人行在你后面。
Everyone is running their own race in their own time zone.
人人都在自己的时区,用自己的速度奔跑。
Don’t envy or mock them.
不必羡慕,不必嘲弄。
They are in their own time zone and you are in yours.
他们有他们的时区,你有你的。
Life is about waiting for the right moment to react.
人生就是伺机而动,奋力一击。
So RELAX.
放轻松。
You’re not late
你不早,
You’re not early
也不晚
You’re very much on time, and in your time zone.
在你的时区里,你无比准时。
Everyone have a different exams paper meaning different questions.
每个人的人生答卷中,都有不同的问题需要解答。
Everyone have a different assignment meaning different purpose in life.
每个人生命中遭遇的故事,都有各自不同的目的。
So focus on your own exampaper, your assignment and purpose.
所以,专注你自己的考验、任务和目标。
Don’t copy and paste or steal answer else you will fail big time.
不要复制粘贴、窃取答案,否则,你将一败涂地。
Your dreams and visions are all valid.
你的愿望和梦想,都是可期的。
Just take your time and do the best you can.
只要花时间,尽你最大的努力。
Be like the hummingbird.
像蜂鸟一样,
Even when mighty lions and tigers underestimated him, he continued to do what he could, where he was ,just as he was, with the little he had.
即使强大的狮子和老虎轻视它,向它一样,就在那里,做所能做。
You’re ok just the way you are.The little work you are doing today might seem insignificant but I bet someday you will see the big picture.
就像现在这样,没问题的。你今天做的工作,看似微不足道。但有一天,你会明白这是多么重要。
You’re Not late ! You’re Not early!
你不晚,也不早,一切都是,刚刚好!

Hey, You're Not Marion Jones!

09-16

The Olympic committee has hired American Code Masters (ACM) to verify the IDs issued to all the athletes, reserves, judges, staff, and the press. Each badge has a barcode written on it in base-5, encoding the ID number. The system of ID numbers uses a check-digit scheme to detect errors and reduce forgeries. You are to write a program to help ACM detect invalid ID numbers.nnThe devices that security uses to read the barcodes produce strings of the letters V,W,X,Y,Z. Each letter represents a base-5 digit: V represents 4, W represents 3, X represents 2, Y represents 1, and Z represents 0. So, WXZ=320 (base-5), which is 85 (base-10). The base-5 number is first converted to a base-10 number. Any number with more than 8 (base-10) digits is considered invalid. Numbers with less than 8 digits are padded on the left with zeroes. IDs are allocated based on the most significant digit (in base-10):nn0, 1 athletes; n2, 3 reserves, n4, 5 judges; n6, 7 staff; and n8, 9 press.nnConsider the ID number d7 d6 ... d1 d0 expressed in base-10, where di (0 <= i <= 7) is a single digit of the ID number. For this ID to be valid the following checksum value must be 0:nnF(0,d0) x F(1,d1) x F(2,d2) x ... x F(6,d6) x F(7,d7)nnWe will define the function F(i,j) and the operator next. The function F is defined as:nnnnThe definition of the function F depends on a permutation of the decimal digits we call G:nnnnThat is, G(0)=1, G(1)=5, etc.nnThe function i j is based on dihedral groups and has the nice property that transposing digits in the ID creates a checksum error. It is defined as follows:nnnnNote that -4 mod 5 = 1.nnThe operator is left-associative, so for example i x j x k = (i x j) x k.nnnInputnnThe first line of the input contains an integer n >= 1. Each of the next n lines contains a single scanned barcode representing a potential ID number. Each scanned barcode will consist only of the characters 'V', 'W', 'X', 'Y', and 'Z' and will be at least 1 and at most 12 letters long.nnnOutputnnYou should output the ID number as read, its corresponding base-10 number, and a message telling either that the ID is invalid or, if it is valid, the type of participant that the ID belongs to. Use the wording and format in the sample output below.nnnSample Inputnn6nWYYXWVZXXnYWYWYYXWVZYYnYWYWYYXWVZYXnYYZWYYXWVZYXnYXXWYYXWVZXWnXYXWYYXWXYYnnnSample OutputnnWYYXWVZXX/01274262 is valid athlete id numbernYWYWYYXWVZYY/81352381 is valid press id numbernYWYWYYXWVZYX/81352382 is invalid id numbernYYZWYYXWVZYX/59868007 is valid judge id numbernYXXWYYXWVZXW/73539888 is valid staff id numbernXYXWYYXWXYY/22520431 is valid reserve id number

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试