Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma GCC optimize("O3")
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define double long double
- #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0)
- #define F first
- #define S second
- signed main()
- {
- _FastIO;
- /*
- // A
- int n;
- string a , b;
- cin >> n >> a >> b;
- for(int i = 0; i < n; i++){
- cout << a[i] << b[i];
- }
- */
- /*
- // B
- int n , x;
- cin >> n;
- map<int , int> cnt;
- for(int i = 0; i < 4 * n - 1; i++){
- cin >> x;
- cnt[x]++; // x -in sayi
- }
- for(int i = 1; i <= n; i++){
- if(cnt[i] < 4)
- cout << i << '\n';
- }
- */
- /*
- // C
- char x;
- for(int i = 8; i >= 1; i--){
- for(char j = 'a'; j <= 'h'; j++){
- cin >> x;
- if(x == '*'){
- cout << j << i;
- }
- }
- }
- */
- /*
- // D
- int n;
- cin >> n;
- vector<pair<int , string> > v;
- while(n--){ // n defe
- string name;
- int h;
- cin >> name >> h;
- v.push_back({h , name});
- }
- sort(v.begin() , v.end());
- reverse(v.begin() , v.end());
- cout << v[1].second << '\n';
- */
- /*
- // E
- int n;
- cin >> n;
- int a[n + 5];
- for(int i = 1; i <= n; i++){
- cin >> a[i];
- }
- int q , type , k , x;
- cin >> q; // queries
- while(q--){
- cin >> type;
- if(type == 1){
- cin >> k >> x;
- a[k] = x;
- }else{
- cin >> k;
- cout << a[k] << '\n';
- }
- }
- */
- /*
- // F
- int n;
- string s;
- cin >> n >> s;
- for(int i = 0; i < n; i++){
- cout << s[i];
- if(s[i] == 'n' && s[i + 1] == 'a')
- cout << 'y';
- }
- */
- /*
- // G
- int r , d , x;
- cin >> r >> d >> x;
- for(int i = 0; i < 10; i++){
- x = r * x - d;
- cout << x << '\n';
- }
- */
- /*
- // H
- int n , m = 0;
- cin >> n;
- int a[n + 5];
- for(int i = 1; i <= n; i++){
- cin >> a[i];
- if(i > 1)
- m = max(m , a[i]);
- }
- m++;
- //cout << max(0LL , m - a[1]) << '\n';
- if(m > a[1])
- cout << m - a[1] << '\n';
- else
- cout << 0 << '\n';
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement