結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2026-08-11 04:51:01 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 439 bytes |
| 記録 | |
| コンパイル時間 | 1,679 ms |
| コンパイル使用メモリ | 166,584 KB |
| 実行使用メモリ | 7,808 KB |
| 最終ジャッジ日時 | 2026-09-04 22:20:05 |
| 合計ジャッジ時間 | 10,849 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 TLE * 3 |
ソースコード
#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++) { std::uint32_t& s=sums[i];for (std::uint32_t j=0;j<w;++j) { std::cin>>x; s += x; } total += s; }
for (std::uint32_t i=0;i<h;i++) std::cout<<std::uint32_t(sums[i] + total)<<"\n";
}
harurun