Zerojudge 基礎題庫a001 哈囉


基本上,只要記得加重複測資即可(while(){})

程式碼:

1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main(){
    string a;
    while( cin >> a)
    cout << "hello, " << a << endl;
}


留言

這個網誌中的熱門文章

Zerojudge 基礎題庫a004 文文的求婚 (Python)

Zerojudge 基礎題庫a002 簡易加法