Welcome to Yantai University

Welcome to Yantai University

时间: 1ms        内存:128M

描述:

小明在YTU在第一节C语言课程,学会了输出"hello world!",为了表达自己对学校的热爱之情,他想编写程序输出以下信息:

I love School of Computer and Control Engineering of Yantai University.
I love School of Computer and Control Engineering of Yantai University.
I love School of Computer and Control Engineering of Yantai University.

记住重要的事情说三遍!

输入:


输出:

按题目要求输出

示例输入:

示例输出:

I love School of Computer and Control Engineering of Yantai University.
I love School of Computer and Control Engineering of Yantai University.
I love School of Computer and Control Engineering of Yantai University.

提示:

参考答案(内存最优[0]):

#include <iostream>
using namespace std;
int main()
{
    cout<<"I love School of Computer and Control Engineering of Yantai University."<<endl;
    cout<<"I love School of Computer and Control Engineering of Yantai University."<<endl;
    cout<<"I love School of Computer and Control Engineering of Yantai University."<<endl;
    return 0;
}

参考答案(时间最优[0]):

#include <iostream>
using namespace std;
int main()
{
    cout<<"I love School of Computer and Control Engineering of Yantai University."<<endl;
    cout<<"I love School of Computer and Control Engineering of Yantai University."<<endl;
    cout<<"I love School of Computer and Control Engineering of Yantai University."<<endl;
    return 0;
}

题目和答案均来自于互联网,仅供参考,如有问题请联系管理员修改或删除。

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注