Submission #509771

# Submission time Handle Problem Language Result Execution time Memory
509771 2022-01-14T09:39:44 Z Salama Split (info1cup19_split) C++17
100 / 100
1 ms 296 KB
#include <bits/stdc++.h>

using namespace std;
int main () {
  string d; cin >>d; for(long long o=0;o<d.size()/2;o++) { cout <<d[o];}
  cout <<" "; for(long long o=d.size()/2;o<d.size();o++)cout <<d[o];
  return 0;
  }

Compilation message

split.cpp: In function 'int main()':
split.cpp:5:41: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    5 |   string d; cin >>d; for(long long o=0;o<d.size()/2;o++) { cout <<d[o];}
      |                                        ~^~~~~~~~~~~
split.cpp:6:43: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    6 |   cout <<" "; for(long long o=d.size()/2;o<d.size();o++)cout <<d[o];
      |                                          ~^~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 288 KB Output is correct
9 Correct 0 ms 204 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 0 ms 204 KB Output is correct
12 Correct 0 ms 204 KB Output is correct
13 Correct 1 ms 204 KB Output is correct
14 Correct 0 ms 204 KB Output is correct
15 Correct 0 ms 204 KB Output is correct
16 Correct 0 ms 204 KB Output is correct
17 Correct 1 ms 288 KB Output is correct
18 Correct 0 ms 296 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 1 ms 288 KB Output is correct