結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-22 22:19:48 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 921 bytes |
| 記録 | |
| コンパイル時間 | 2,098 ms |
| コンパイル使用メモリ | 354,072 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-09-22 22:20:10 |
| 合計ジャッジ時間 | 19,766 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 TLE * 9 |
ソースコード
#line 1 "codes/Libraries/Core.hpp"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n, s) for (int i = s; i < n; i++)
#define vall(v) v.begin(), v.end()
constexpr int INF = 1 << 30;
constexpr int NEG_INF = -INF;
constexpr ll LINF = 1ll << 62;
constexpr ll NEG_LINF = -LINF;
template <typename T> inline bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <typename T> inline bool chmin(T &a, const T &b) {
if (a > b) {
a = b;
return true;
}
return false;
}
#line 2 "codes/A.cpp"
using uint=unsigned int;
int main(){
int h,w;
cin>>h>>w;
vector<uint> s(h);
uint t=0;
rep(i,h){
uint now=0;
rep(j,w){
uint a;
cin>>a;
now+=a;
}
s[i]=now;
t+=now;
}
rep(i,h){
s[i]+=t;
cout<<s[i]<<'\n';
}
cout<<flush;
}