现在的位置: 首页 > 综合 > 正文

HDOJ HDU 2081 手机短号 ACM 2081 IN HDU

2012年06月03日 ⁄ 综合 ⁄ 共 416字 ⁄ 字号 评论关闭
//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;
}

抱歉!评论已关闭.