結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-04 23:36:10 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 791 bytes |
| 記録 | |
| コンパイル時間 | 3,902 ms |
| コンパイル使用メモリ | 380,916 KB |
| 実行使用メモリ | 58,144 KB |
| 最終ジャッジ日時 | 2026-09-04 23:36:19 |
| 合計ジャッジ時間 | 7,911 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 TLE * 1 -- * 7 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using ll = long long;
#define rep(i, s, t) for (ll i = s; i < (ll)(t); i++)
#define all(x) begin(x), end(x)
template <class T> bool chmin(T& x, T y) {
return x > y ? (x = y, true) : false;
}
template <class T> bool chmax(T& x, T y) {
return x < y ? (x = y, true) : false;
}
using u32 = uint32_t;
void solve() {
int h, w;
cin >> h >> w;
vector<vector<u32>> a(h, vector<u32>(w));
rep(i, 0, h) rep(j, 0, w) cin >> a[i][j];
vector<u32> s(h);
rep(i, 0, h) rep(j, 0, w) s[i] += a[i][j];
u32 t = 0;
rep(i, 0, h) t += s[i];
rep(i, 0, h) cout << (s[i] + t) << '\n';
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << fixed << setprecision(15);
int t = 1;
// cin >> t;
while (t--) solve();
}