Task 1
寒假第一讲:C++ 基础一.Long Loong1.对应思路思路较为简单,就是先固定输出L,再根据输入的N得到应该输出多少o,最后再固定输出ng。 2.代码123456789101112#include <iostream>using namespace std;int main(){ int n; cin >> n; cout << 'L'; for (int i = 0; i < n; i++) cout << 'o'; cout << "ng"; return 0;} 3.学习总结学到了for循环的基本用法,对我帮助极大,受益良多。 二.YES or YES?1.对应思路思路就是将输入的字符串全部大写,然后判断是否等于YES,如果等于就输出YES,不等于就输出NO。 2.代码12345678910111213141516171819#include <iostream>#include...
blog用法
practice
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment