結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2026-09-04 22:33:15 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 533 bytes |
| 記録 | |
| コンパイル時間 | 1,056 ms |
| コンパイル使用メモリ | 170,176 KB |
| 実行使用メモリ | 73,728 KB |
| 最終ジャッジ日時 | 2026-09-04 22:35:11 |
| 合計ジャッジ時間 | 4,891 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 TLE * 2 -- * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int h, w;
cin >> h >> w;
vector<vector<long long>> a(h, vector<long long> (w));
for (int i = 0; i < h; ++i) for (int j = 0; j < w; ++j) cin >> a[i][j];
long long t = 0;
for (int i = 0; i < h; ++i) for (int j = 0; j < w; ++j) t = (t + a[i][j]) % (1LL << 32);
for (int i = 0; i < h; ++i)
{
long long s = 0;
for (int j = 0; j < w; ++j) s = (s + a[i][j]) % (1LL << 32);
cout << (t + s) % (1LL << 32) << endl;
}
}
テナガザル