結果

問題 No.3677 Global Checksum
コンテスト
ユーザー GOTKAKO
提出日時 2026-09-04 22:32:16
言語 C++17
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
TLE  
実行時間 -
コード長 409 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,136 ms
コンパイル使用メモリ 210,824 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2026-09-04 22:34:23
合計ジャッジ時間 5,034 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    using uint = unsigned int;
    int H,W; cin >> H >> W;
    vector<uint> S(H);
    uint T = 0;
    for(auto &s : S){
        for(int i=0; i<W; i++){
            uint a; cin >> a;
            s += a;
        }
        T += s;
    }
    for(int i=0; i<H; i++) cout << S.at(i)+T << "\n";
}
0