結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
T1610
|
| 提出日時 | 2026-10-09 11:41:48 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 2,351 ms |
| コンパイル使用メモリ | 333,020 KB |
| 実行使用メモリ | 9,912 KB |
| 最終ジャッジ日時 | 2026-10-09 11:42:11 |
| 合計ジャッジ時間 | 15,532 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 17 TLE * 3 |
コンパイルメッセージ
main.cpp:20:26: warning: multi-character character constant [-Wmultichar]
20 | cout<<c<<'¥n';
| ^~~~
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; ++i)
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n,m;
cin>>n>>m;
using uint=unsigned int;
vector<uint> s(n);
rep(i,n) rep(j,m) {
uint a;
cin>>a;
s[i]+=a;
}
uint t=accumulate(s.begin(),s.end(),(uint)0);
rep(i,n){
uint c=s[i]+t;
cout<<c<<'¥n';
}
}
T1610