結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2026-08-11 04:46:26 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 72,960 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-04 22:19:39 |
| 合計ジャッジ時間 | 4,375 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 TLE * 1 -- * 7 |
ソースコード
#include <cstdint>
#include <cstdio>
#include <vector>
std::uint32_t h, w;
std::uint32_t sums[1000010];
std::uint32_t total,x;
int main() {
scanf("%u%u",&h,&w);
for (std::uint32_t i=0;i<h;i++) { for (std::uint32_t j=0;j<w;++j) { scanf("%u",&x); sums[i] += x; } total += sums[i]; }
for (std::uint32_t i=0;i<h;i++) printf("%u\n",std::uint32_t(sums[i] + total));
}
harurun