結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2026-08-11 04:52:14 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 520 bytes |
| 記録 | |
| コンパイル時間 | 1,392 ms |
| コンパイル使用メモリ | 174,288 KB |
| 実行使用メモリ | 6,784 KB |
| 最終ジャッジ日時 | 2026-09-04 22:20:07 |
| 合計ジャッジ時間 | 5,270 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 TLE * 2 -- * 5 |
ソースコード
# pragma GCC target("avx2")
# pragma GCC optimize("O3")
# pragma GCC optimize("unroll-loops")
#include <cstdint>
#include <iostream>
#include <vector>
std::uint32_t h, w;
std::uint32_t sums[1000010];
std::uint32_t total,x;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin>>h>>w;
for (std::uint32_t i=0;i<h;i++) { for (std::uint32_t j=0;j<w;++j) { std::cin>>x; sums[i] += x; } total += sums[i]; }
for (std::uint32_t i=0;i<h;i++) std::cout<<std::uint32_t(sums[i] + total)<<"\n";
}
harurun