結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-08-10 05:53:11 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 399 bytes |
| 記録 | |
| コンパイル時間 | 314 ms |
| コンパイル使用メモリ | 72,576 KB |
| 実行使用メモリ | 7,552 KB |
| 最終ジャッジ日時 | 2026-09-04 22:15:18 |
| 合計ジャッジ時間 | 4,353 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 TLE * 2 -- * 6 |
ソースコード
#include <cstdint>
#include <cstdio>
#include <vector>
int main() {
std::uint32_t h, w; if (std::scanf("%u%u", &h, &w) != 2) return 1;
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) { if(std::scanf("%u",&x)!=1)return 1; s+=x; } total+=s; }
for (auto s : sums) std::printf("%u\n", std::uint32_t(s+total));
}