1534.Single Dog

这篇博客探讨了在ACM(国际大学生程序设计竞赛)中,参赛者的AC( Accepted Solutions,即通过题目数)数量与他们是否有伴侣之间的关联。根据研究,如果一个ACMer的AC数不少于10000,他们更有可能拥有伴侣,反之则可能是单身。这个发现源于一次关于'AC数与恋爱'的讨论,引发了对于程序员社交生活的关注。
摘要由CSDN通过智能技术生成

Time Limit: 1000 MS    Memory Limit: 32768 KB
Total Submission(s): 578    Accepted Submission(s): 173

Description

Single dog, single dog, single all the day......

As a qualified ACMer, you should code and code everyday, and you will not have enough time to do other things, including dating with your girlfriend/boyfriend(if you have).

So 80% ACMer are single in SDNU(What a sad story!).

One day, ghost_lzw asked a question:"Does AC number have something to do with girlfriend?" and it attracted Albert_s's attention.

After a lot of research, he found that: "if an ACMer's AC number is not less than 10000, he will have a girlfriend/boyfriend, vice versa".

Now, LiuYuxin gets a list with username and AC number, and she wants to know whether the user on the list is a single dog or not.

Input

The first line is an integer t(), denoting the number of testcases.

For each testcase, we have a line with an a string s() and a number N(​), represent the username and AC number.

Output

For the i-th test case, output "Case #i: "(i indicates the case number), then output username and "is Life Winner." or "is Single Dog." for the answer.

Read the sample input and sample output for more details.

Sample Input

2
LiuYuxin 1111
Albert_s 11111

Sample Output

Case #1: LiuYuxin is Single Dog.
Case #2: Albert_s is Life Winner.

Hint

In order to find a girlfriend/boyfriend, much Accepted is required.

Source

Unknown

 

key:

d记得开long long

#include<bits/stdc++.h>
using namespace std;

int t;
long long d;
string s;

int main()
{
	cin>>t;
	for(int i=1;i<=t;i++)
	{
		cin>>s;
		cin>>d;
		cout<<"Case #"<<i<<": "<<s<<" is ";
		if(d>=10000)
		cout<<"Life Winner."<<'\n';
		else
		cout<<"Single Dog."<<'\n';
	}
	
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值