結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2026-09-04 22:45:13 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 694 bytes |
| 記録 | |
| コンパイル時間 | 1,363 ms |
| コンパイル使用メモリ | 182,720 KB |
| 実行使用メモリ | 73,752 KB |
| 最終ジャッジ日時 | 2026-09-04 22:54:19 |
| 合計ジャッジ時間 | 5,081 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 TLE * 1 -- * 7 |
ソースコード
# pragma GCC target("avx2")
# pragma GCC optimize("O3")
# pragma GCC optimize("unroll-loops")
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
const long long mod = (1LL << 32) - 1;
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 += a[i][j];
t &= mod;
for (int i = 0; i < h; ++i)
{
long long s = t;
for (int j = 0; j < w; ++j) s += a[i][j];
s &= mod;
cout << s << '\n';
}
}
テナガザル