A4054 | 【PY】介绍朋友
时间限制1s
内存限制128MB
通过 / 提交0/0
题目描述
最近小明交到了2个外国朋友,想要把这几个好朋友介绍给他的好朋友李红,我们需要介绍名字和年龄,但是呢,实际上小明的英语不好,忘了他们的名字和年龄,这里就需要我们来输入啦
具体介绍的语句是:
Hello,Hong,They are my new friends,this is XXX,and this is YYY,they are xx and yy years old.
具体介绍的语句是:
Hello,Hong,They are my new friends,this is XXX,and this is YYY,they are xx and yy years old.
输入格式
一行,先输入第一位小朋友的名字和年龄,再输入第二位小朋友的名字和年龄,一共4项输入,每项中间空一格
输出格式
如题
输入输出样例
输入 #1
Lee 12 Richard 13
输出 #1
Hello,Hong,They are my new friends,this is Lee,and this is Richard,they are 12 and 13 years old.
这道题,建议使用input().split()
C++ 编辑器
输入
输出
可保存默认模板;新题优先使用已保存模板。
当前快捷键仅展示,暂不支持修改。
- 撤销
Ctrl / ⌘ + Z - 重做
Ctrl / ⌘ + Y - 查找
Ctrl / ⌘ + F - 全选
Ctrl / ⌘ + A - 复制
Ctrl / ⌘ + C - 剪切
Ctrl / ⌘ + X - 粘贴
Ctrl / ⌘ + V - 自动排版
工具栏排版按钮 - 草稿保存
编辑时自动保存到本机
历史
提交记录
状态说明时间源码
AI
作答助手
你好,我是作答助手。可以问思路、复杂度、样例含义或代码报错原因;不会直接给出完整 AC 代码。
确定要清空代码吗?
提交通过
评测结果:Accepted