結果

問題 No.3677 Global Checksum
コンテスト
ユーザー harurun
提出日時 2026-08-10 11:17:14
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
実行時間 -
コード長 249 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 304 ms
コンパイル使用メモリ 21,460 KB
実行使用メモリ 64,892 KB
最終ジャッジ日時 2026-09-04 22:15:53
合計ジャッジ時間 13,134 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 3
other TLE * 13 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
import numpy as np

x = np.fromstring(sys.stdin.buffer.read(), dtype=np.uint32, sep=' ')

W = int(x[1])

s = x[2:].reshape(-1, W).sum(axis=1, dtype=np.uint32)
s += s.sum(dtype=np.uint32)

s.tofile(sys.stdout.buffer, sep='\n', format='%u')
0