Submission #2233824
Source Code Expand
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep2(i,n) for(int i=1;i<=(int)(n);i++) #define rep3(i,n) for(int i=0;i<=(int)(n);i++) #define REP(i,m,n) for(int i=m;i<(int)(n);i++) #define repll(i,n) for(ll i=0;i<(ll)(n);i++) #define repll2(i,n) for(ll i=1;i<=(ll)(n);i++) #define REPLL(i,m,n) for(ll i=m;i<(ll)(n);i++) #define INF 1000000000 // #define LINF (ll)4000000000000000000 // #define MOD (ll)1000000007 #define MP make_pair #define YES(n) cout << ((n) ? "YES" : "NO" ) << endl #define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl #define PI 3.1415926535898 #define NP(v) next_permutation(v.begin(),v.end()) //------------------------------------------------------ bool check(string s) { int l = s.length(); rep(i, l / 2) { if (s[i] != '#' && s[l - 1 - i] != '#' && s[i] != s[l - 1 - i]) return true; } return false; } int main() { string s; cin >> s; rep(i, 8) s.erase(s.end() - 1); cout << s << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - XXFESTIVAL |
User | stoq |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1150 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 1 ms | 256 KB |
01-02.txt | AC | 1 ms | 256 KB |
01-03.txt | AC | 1 ms | 256 KB |
01-04.txt | AC | 1 ms | 256 KB |
01-05.txt | AC | 1 ms | 256 KB |
01-06.txt | AC | 1 ms | 256 KB |
01-07.txt | AC | 1 ms | 256 KB |
sample-01.txt | AC | 1 ms | 256 KB |
sample-02.txt | AC | 1 ms | 256 KB |
sample-03.txt | AC | 1 ms | 256 KB |