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)

紙蜻蜓的受風面積與紙蜻蜓落地時間的關係 #1 [實驗歷程與Python Matplotlib]

Zerojudge 基礎題庫a013 羅馬數字 (Python)