結果
| 問題 | No.607 開通777年記念 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-11 13:34:25 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 584 bytes |
| 記録 | |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 35,288 KB |
| 最終ジャッジ日時 | 2026-05-24 03:09:15 |
| 合計ジャッジ時間 | 9,071 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 5 |
ソースコード
#!/usr/bin/env python
import numpy as np
nm = [int(x) for x in input().split()]
indats = []
for i in range(nm[1]):
indats.append([int(x) for x in input().split()])
npax = np.array([0 for x in range(nm[0])])
for indat in indats:
indat = np.array(indat)
npax += indat
for i in range(nm[0]):
sumpax = 0
for j in range(nm[0]-i):
sumpax += npax[i+j]
if sumpax == 777:
print('YES')
exit()
elif sumpax > 777:
break
else:
continue
print('NO')