Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 884

Foydalanuvchilar soni: 5944

Jo'natishlar soni: 519491

Muhokama yozuvlari: 3076

Yangiliklar soni: 89

Yangiliklar izohlari: 1017


So'ngi izohlar

  1. 3. Accepted , , #001. Kubik


            ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);

  2. 4. PAIN, , #670. Uchburchaklar

    O(2 * log(n) * n + n / 2 * (n / 2 + 1) / 2)  ≈ O(30.000.000)

  3. 10. Doniyor Azimov, , #139. Matritsa10

    #include <iostream>
    #include <math.h>
    #include <stdio.h>
    using namespace std;



    main() {

        int n;
        int m;
        cin>>n>>m;
        int a[n][m];

        int indi=-1,indj=-1;
        for(int i=0;i<n;++i){
            for(int j=0;j<m;++j){
                cin>>a[i][j];
                if(a[i][j]<0){
                    indi=i;
                    indj=j;
                }
            }
        }
        for(int i=0;i<n;++i){
            if(indi==i){
                continue;
            }
            for(int j=0;j<m;++j){
                if(indj==j){
                    continue;
                }
                cout<<a[i][j]<<" ";
            }
            cout<<endl;
        }


        return 0;
    }

Muhokamada qatnashish uchun dastlab tizimga kiring yoki ro`yxatdan o`ting!