답안 #901211

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
901211 2024-01-09T08:03:13 Z Codeuss Split (info1cup19_split) C++17
100 / 100
1 ms 600 KB
#include <bits/stdc++.h>
using namespace std;



int main(void){
    string s;
    cin >> s;
    int siz = s.size() / 2;
    for(int i= 0;i<siz;i++)cout << s[i];
    cout << ' ';
    for(int i = siz;i<s.size();i++)cout << s[i];
}

Compilation message

split.cpp: In function 'int main()':
split.cpp:12:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for(int i = siz;i<s.size();i++)cout << s[i];
      |                     ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 600 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct