Submission #8322189
Source Code Expand
#pragma GCC optimize("Ofast") #include<bits/stdc++.h> using namespace std; struct __INIT{__INIT(){cin.tie(0);ios::sync_with_stdio(false);cout<<fixed<<setprecision(15);}} __init; #define max3(a,b,c) max(a,max(b,c)) #define min3(a,b,c) min(a,min(b,c)) #define MOD 1000000007 #define INF (1<<30) #define LINF (1LL<<60) #define endl "\n" #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define reprev(i,n) for(int (i)=(n-1);(i)>=0;(i)--) #define Flag(x) (1<<(x)) #define Flagcount(x) __builtin_popcount(x) #define pint pair<int,int> #define pdouble pair<double,double> #define plint pair<lint,lint> typedef unsigned long long int ull; typedef long long lint; int main(void){ string S; cin >> S; int alf[26]={}; int L=S.length(); rep(i,L) alf[S[i]-'a']++; rep(i,26) if(alf[i]>0) cout << (char)('a'+i) << (char)('a'+i); cout << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - Double String |
User | bayashiko |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 870 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 |
All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, sample-01.txt, sample-02.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 |
sample-01.txt | AC | 1 ms | 256 KB |
sample-02.txt | AC | 1 ms | 256 KB |