ZJANS

c726. K-I-S-S-I-N-G (一行版)

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

給兩個由空白隔開的名字 s1, s2
輸出 “{s1} and {s2} sitting in the tree”


解法一

✅ 完整代碼

評分結果(參考) : AC (3ms, 336KB)

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

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    string s1, s2;
    cin >> s1 >> s2;
    cout << s1 << " and " << s2 << " sitting in the tree";
    
    return 0;
}