#include <iostream>
#include <string>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int N; cin >> N;
cin.ignore();
for (int i = 0; i < N; i++) {
string s; getline(cin, s);
int cnt = 0;
for (int j = 0; j < s.length(); j++) {
cnt++;
if (s[j] == ' ')break;
}
cout << "god";
for(int k=cnt; k<s.length(); k++){
if (s[k] != ' ') cout << s[k];
}
cout << "\n";
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 13241๋ฒ - ์ต์๊ณต๋ฐฐ์ (0) | 2021.11.04 |
---|---|
[๋ฐฑ์ค,c++] 13239๋ฒ - Combinations (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13171๋ฒ - A (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 1316๋ฒ - ๊ทธ๋ฃน ๋จ์ด ์ฒด์ปค (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13023๋ฒ - ABCDE (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 1302๋ฒ - ๋ฒ ์คํธ์ ๋ฌ (0) | 2021.11.04 |
๋๊ธ