ZJANS

c186. 蝸牛老師的點名單

Beginner Last Update: 2026/01/22
基礎 IO字串

給 n 個名字 s
將每個名字單獨輸出於一行


解法一

✅ 完整代碼

評分結果(參考) : AC (2ms, 316KB)

#include<bits/stdc++.h>
#define int long long
using namespace std;

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string s;
    while(cin >> s){
        cout << s << "\n";
    }

    return 0;
}