Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Hcn có dấu cộng ở giữa

lammac Apr 6th, 2020 236 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main(){
  3.     int n, m  ;
  4.     int n1, m1;
  5.     scanf("%d %d", &n, &m);
  6.     n1 = (n+1) / 2;
  7.     m1 = (m+1) / 2;
  8.     for(int i = 1; i <= n; i++){
  9.         for( int j = 1; j <= m; j++){
  10.             if(n1==i || m1==j ){
  11.             printf("0");
  12.                }
  13.             else if((m%2==0 && m1+1==j) || (n%2==0 && n1+1==i)){
  14.                 printf("0");
  15.                }
  16.             else{
  17.                 printf("1");
  18.             }
  19.            }
  20.         printf("\n");
  21.    }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top