ACM___________________________

______________白白の屋
posts - 182, comments - 102, trackbacks - 0, articles - 0

HDOJ HDU 2081 手机短号 ACM 2081 IN HDU

Posted on 2010-08-06 09:45 MiYu 阅读(757) 评论(0)  编辑 收藏 引用 所属分类: ACM ( 串 )ACM ( 水题 )
//MiYu原创, 转帖请注明 : 转载自 ______________白白の屋

题目地址:
         http://acm.hdu.edu.cn/showproblem.php?pid=2081
水到不能在水的一道题......................
直接代码:
//MiYu原创, 转帖请注明 : 转载自 ______________白白の屋

#include 
<iostream>
#include 
<string>
using namespace std;
int main ()
{
    
int T;
    cin 
>> T;
    
while ( T -- )
    {
           
string t;
           cin 
>> t ;
           
string num ( t, 6,11 );
           cout 
<< "6" + num << endl;
    }
    
return 0;
}

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理