提出 #18868277


ソースコード 拡げる

#ifdef DEBUG
#define _GLIBCXX_DEBUG
#endif
#pragma GCC optimize("O3")
#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef long double ld;

int main() {
#ifdef DEBUG
    freopen("input.txt", "r", stdin);
#else
//    freopen("lupa.in","r",stdin);
//    freopen("pupa.out","w",stdout);
#endif
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout << setprecision(10);
    cout << fixed;
    int n, m;
    cin >> n >> m;
    int sum = 0;
    int mn = 100000;
    for(int i =0;i<n;++i) {
        for(int j =0;j<m;++j) {
            int cur;
            cin >> cur;
            sum +=cur;
            mn = min(mn, cur);
        }
    }
    cout << sum - mn*n*m;
    return 0;
}

提出情報

提出日時
問題 B - Blocks on Grid
ユーザ Paliukh
言語 C++ (GCC 9.2.1)
得点 200
コード長 745 Byte
結果 AC
実行時間 7 ms
メモリ 3612 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 14
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_11.txt, random_12.txt, random_13.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
random_01.txt AC 7 ms 3540 KiB
random_02.txt AC 4 ms 3528 KiB
random_03.txt AC 2 ms 3612 KiB
random_04.txt AC 2 ms 3540 KiB
random_05.txt AC 2 ms 3480 KiB
random_06.txt AC 3 ms 3540 KiB
random_07.txt AC 2 ms 3520 KiB
random_08.txt AC 2 ms 3584 KiB
random_11.txt AC 3 ms 3584 KiB
random_12.txt AC 3 ms 3572 KiB
random_13.txt AC 3 ms 3536 KiB
sample_01.txt AC 2 ms 3612 KiB
sample_02.txt AC 2 ms 3584 KiB
sample_03.txt AC 1 ms 3568 KiB