結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2026-09-06 15:10:03 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 619 bytes |
| 記録 | |
| コンパイル時間 | 475 ms |
| コンパイル使用メモリ | 50,384 KB |
| 実行使用メモリ | 7,936 KB |
| 最終ジャッジ日時 | 2026-09-06 15:10:38 |
| 合計ジャッジ時間 | 12,239 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 TLE * 8 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3677.cc: No.3677 Global Checksum - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_H = 1000000;
const int MAX_HW = 4000000;
/* typedef */
using ui = unsigned int;
/* global variables */
ui ss[MAX_H];
/* subroutines */
/* main */
int main() {
int h, w;
scanf("%d%d", &h, &w);
ui t = 0;
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
ui aij;
scanf("%u", &aij);
ss[i] += aij;
}
t += ss[i];
}
for (int i = 0; i < h; i++)
printf("%u\n", ss[i] + t);
return 0;
}
tnakao0123