Submission #70095338
Source Code Expand
// Problem: A - ABC -> AC
// Contest: AtCoder - Panasonic Programming Contest 2025(AtCoder Beginner Contest 427)
// URL: https://atcoder.jp/contests/abc427/tasks/abc427_a
// Memory Limit: 1024 MB
// Time Limit: 2000 ms
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
ll tttt=1;
//cin>>tttt;
while(tttt--)
{
string s;
cin>>s;
for(int i=0;i<s.length();i++)
{
if(i==s.length()/2)continue;
cout<<s[i];
}
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - ABC -> AC |
| User | evilwater |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 541 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3596 KiB |
Compile Error
Main.cpp: In function ‘int main()’:
Main.cpp:21:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
21 | for(int i=0;i<s.length();i++)
| ~^~~~~~~~~~~
Main.cpp:23:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
23 | if(i==s.length()/2)continue;
| ~^~~~~~~~~~~~~~
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 | 3436 KiB |
| sample01.txt | AC | 1 ms | 3432 KiB |
| sample02.txt | AC | 1 ms | 3492 KiB |
| testcase00.txt | AC | 1 ms | 3492 KiB |
| testcase01.txt | AC | 1 ms | 3576 KiB |
| testcase02.txt | AC | 1 ms | 3500 KiB |
| testcase03.txt | AC | 1 ms | 3440 KiB |
| testcase04.txt | AC | 1 ms | 3436 KiB |
| testcase05.txt | AC | 1 ms | 3412 KiB |
| testcase06.txt | AC | 1 ms | 3500 KiB |
| testcase07.txt | AC | 1 ms | 3596 KiB |