vitormartinotti

formatura

May 21st, 2026
54
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int N[1000100], M[1000010];
  6.  
  7. int main(){
  8.     int n, m, p; scanf("%d %d %d", &n, &m, &p);
  9.    
  10.     for(int i = 1; i <= n; i++) N[i] = i;
  11.     for(int i = 1; i <= m; i++) M[i] = i;
  12.    
  13.     while(p--){
  14.         char o; int a, b; scanf(" %c %d %d", &o, &a, &b);
  15.         if(o == 'L'){
  16.             swap(N[a], N[b]);
  17.         }
  18.         else{
  19.             swap(M[a], M[b]);
  20.         }
  21.     }
  22.    
  23.     for(int i = 1; i <= n; i++){
  24.         for(int j = 1; j <= m; j++){
  25.             printf("%d ", (N[i]-1)*m+M[j]);
  26.         }
  27.         printf("\n");
  28.     }
  29.    
  30. }
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Lozakze
    21 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment