Submission
# | When | Author | Problem | Language | CPU | Memory | |
---|---|---|---|---|---|---|---|
4480 | 2022-03-25 20:23:45 | The_crawler | Special Problem | C++ 17 | 3 ms | 3524 kb | Accepted |
Test Cases
# | CPU | Memory | Points | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 2 ms | 3356 kb | 1 | Accepted | |||||||
2 | 2 ms | 3284 kb | 1 | Accepted | |||||||
3 | 2 ms | 3452 kb | 1 | Accepted | |||||||
4 | 2 ms | 3524 kb | 1 | Accepted | |||||||
5 | 3 ms | 3360 kb | 1 | Accepted | |||||||
6 | 3 ms | 3364 kb | 1 | Accepted | |||||||
7 | 2 ms | 3472 kb | 1 | Accepted | |||||||
8 | 2 ms | 3448 kb | 1 | Accepted | |||||||
9 | 2 ms | 3416 kb | 1 | Accepted | |||||||
10 | 2 ms | 3320 kb | 1 | Accepted | |||||||
11 | 2 ms | 3296 kb | 1 | Accepted | |||||||
12 | 2 ms | 3332 kb | 1 | Accepted | |||||||
Source Code
/* Author: Tazim(The_crawler) */ #include<bits/stdc++.h> #define ll long long int #define dec greater<int>() #define lower(s) transform(s.begin(), s.end(), s.begin(), ::tolower); #define upper(s) transform(s.begin(), s.end(), s.begin(), ::toupper); #define prow(n) for(auto i:n)cout<<i<<" ";cout<<endl; #define pcol(n) for(auto i:n)cout<<i<<endl; #define yes cout<<"YES"<<endl; #define no cout<<"NO"<<endl; #define debug(x) cout<<#x<<" = ";_print(x); cout<<endl; /// Debug function using namespace std; ///**** bool sortbysec(const pair<int, int>& a, const pair<int, int>& b) { return (a.second < b.second); } template<class T> void _print(T x) { cout << x; } template<class T> void _print(vector<T>x) { cout << "[ ";for (T i : x)cout << i << " ";cout << "]"; } template<class T> void _print(set<T>x) { cout << "[ ";for (T i : x)cout << i << " ";cout << "]"; } template<class T, class V> void _print(pair<T, V>x) { cout << "{" << x.first << "," << x.second << "} "; } template<class T, class V> void _print(map<T, V>x) { cout << "[ ";for (auto i : x)_print(i);cout << "]"; } template<class T> void _print(multiset<T>x) { cout << "[ ";for (T i : x)cout << i << " ";cout << "]"; } /* Hack my code. It's Easy to Read */ bool isprime(int n) { if (n < 2)return 0; if (n == 2)return 1; for (int i = 2; i * i <= n; i++) { if (n % i == 0)return 0; } return 1; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); // start int n, k; cin >> n >> k; char s = 'A'; cout << s; for (int i = 1; i < k; i++) { cout << (char)(s + i); } for (int i = 0; i < (n - k); i++)cout << "A"; cout << endl; return 0; }