Submission #70041556
Source Code Expand
#include <bits/stdc++.h>
#define int long long
using namespace std;
namespace IO {
template<typename T> inline void read(T &x) {
bool f = 1;
x = 0;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')f = 0;
ch = getchar();
}
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch & 15), ch = getchar();
x = f ? x : -x;
}
template<typename T> inline void write(T x) {
if (x < 0) putchar('-'), x = -x;
if (x > 9) write(x / 10);
putchar(('0' + x % 10));
}
template <typename T, typename ...Args> inline
void read(T &x, Args &...args) {read(x),read(args...);}
template<typename T> inline void write(T x, char c) {write(x), putchar(c);}
}
using namespace IO;
const int INF=1e18;
string s;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin>>s;
for(int i=0;i<s.size();i++)
if(i!=s.size()/2) cout<<s[i];
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - ABC -> AC |
| User | NingMeng_yang |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 935 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3560 KiB |
Compile Error
Main.cpp: In function ‘int main()’:
Main.cpp:36:22: 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]
36 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
Main.cpp:37:21: 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]
37 | if(i!=s.size()/2) cout<<s[i];
| ~^~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample00.txt, sample01.txt, sample02.txt |
| All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample00.txt | AC | 1 ms | 3500 KiB |
| sample01.txt | AC | 1 ms | 3364 KiB |
| sample02.txt | AC | 1 ms | 3492 KiB |
| testcase00.txt | AC | 1 ms | 3496 KiB |
| testcase01.txt | AC | 1 ms | 3492 KiB |
| testcase02.txt | AC | 1 ms | 3492 KiB |
| testcase03.txt | AC | 1 ms | 3344 KiB |
| testcase04.txt | AC | 1 ms | 3360 KiB |
| testcase05.txt | AC | 1 ms | 3496 KiB |
| testcase06.txt | AC | 1 ms | 3556 KiB |
| testcase07.txt | AC | 1 ms | 3560 KiB |