2024/03/08 7

[Softeer/C++]Level2 [한양대 HCPC 2023] X marks the Spot

https://softeer.ai/practice/7703/history?questionType=ALGORITHM Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 소스코드 #include using namespace std; int main() { int n; cin >> n; string a, b; string result; for (int i = 0; i > a >> b; for (int i = 0; i < a.size(); i++) { a[i] = toupper(a[i]); } size_t idx = a.find("X"); string temp = b.substr(idx, 1); result+= toupper(temp[0]); } cout

[Softeer/C++]Level1 위험한 효도

https://softeer.ai/practice/7368 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 소스코드 #include #include #include #include #include using namespace std; int main(int argc, char** argv) { int a,b,d; cin >> a>>b>>d; int destint = d * 2; int curdir =0; int time =0; int temp = 0; bool isFront = false; while (destint != curdir) { if (isFront == false) { for (int i = 0; i < a; i++) { time += 1; curdir += 1; if ..