結果

問題 No.3677 Global Checksum
コンテスト
ユーザー harurun
提出日時 2026-08-11 04:52:14
言語 C++23(gcc16)
(gcc 16.1.0 + boost 1.92.0)
コンパイル:
g++-16 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
TLE  
実行時間 -
コード長 520 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# 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";
}
0