結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-08-10 05:36:24 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 953 ms |
| コンパイル使用メモリ | 161,664 KB |
| 実行使用メモリ | 7,296 KB |
| 最終ジャッジ日時 | 2026-09-04 22:13:44 |
| 合計ジャッジ時間 | 4,730 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 TLE * 4 |
ソースコード
#include <cstdint>
#include <iostream>
#include <vector>
int main() {
std::ios::sync_with_stdio(false); std::cin.tie(nullptr);
std::uint32_t h, w; std::cin >> h >> w;
std::vector<std::uint32_t> sums(h); std::uint32_t total = 0;
for (auto& s : sums) { s = 0; for (std::uint32_t j=0,x;j<w;++j) { std::cin >> x; s += x; } total += s; }
for (auto s : sums) std::cout << std::uint32_t(s + total) << '\n';
}