码迷,mamicode.com
首页 > 其他好文 > 详细

HDOJ Guess the number 3337【神题-抓取杭电后台输出数据】

时间:2015-08-08 15:03:47      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

Guess the number

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7077    Accepted Submission(s): 1626


Problem Description
AekdyCoin is the most powerful boy in the group ACM_DIY, whose signature is valuable. In order to get his signature, you must first solve this problem. But don‘t be worried, because this is the easiest problem in the world. You are given only one sentence written in English. You are asked to output a single integer implied by this sentence.
 

Input
There is only one line in the input. It is a sentence which implies some integer. The length of the sentence is no more than 16. The sentence contains only letters(both uppercase and lowercase), digits, and whitespace. You may assume the given sentence is written in standard English, and always implies exactly one single integer.
 

Output
There is only one integer to output: that is the integer implied by the input sentence. You may assume this integer is in the range of 32-bit signed int.
 

Sample Input
One
 

Sample Output
1
 

Author
hhanger@ZJU
 

Source
 

Recommend
lcy   |   We have carefully selected several similar problems for you:  3333 3335 3338 3339 3341 
 


题意:给你一个长度16的字符串去输出这个字符串代表的数据。

解题思路:

官方给的解题报告:本题属于非正常题,纯属娱乐。因为本题最多只有16个字符,所以可以用X分提交法来套取输入数据,可以利用的返回结果至少有6种,把字符先统一转化成小写后,基本上两次提交可以确定一个字符,因此可以在期望时间内得到解。


无语啊。。。奇葩题!奇葩题!奇葩题!

巫神有篇博客讲解的抓取hdoj后台测试输出数据:http://blog.watashi.ws/tag/hdoj/

反正现在我是没看懂。。也不知道怎么用。。。

网上有人放肉给出的测试数据》》》72....输出72就可以了。。。。神题。。神题

#include <stdio.h>
int main()
{
printf("72\n");
}


版权声明:本文为博主原创文章,转载请注明出处。

HDOJ Guess the number 3337【神题-抓取杭电后台输出数据】

标签:

原文地址:http://blog.csdn.net/ydd97/article/details/47357847

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!