B. Internet Address codeforces-problem-245B

这是一道关于恢复互联网资源地址的题目。Vasya记录了一个没有标点符号的地址,你需要根据规则帮助他恢复可能的正确地址。输入是一个仅包含小写字母的字符串,需要检查是否符合'http'或'ftp'协议,以及可能的'domain'和'context'部分。如果存在多种可能的正确答案,可以输出任何一种。
摘要由CSDN通过智能技术生成
B. Internet Address
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Vasya is an active Internet user. One day he came across an Internet resource he liked, so he wrote its address in the notebook. We know that the address of the written resource has format:

<protocol>://<domain>.ru[/<context>]

where:

  • <protocol> can equal either "http" (without the quotes) or "ftp" (without the quotes),
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值