結果
| 問題 | No.607 開通777年記念 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-11 13:34:25 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 584 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 34,168 KB |
| 最終ジャッジ日時 | 2026-10-02 14:05:09 |
| 合計ジャッジ時間 | 9,042 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_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')