結果
問題 |
No.607 開通777年記念
|
ユーザー |
|
提出日時 | 2017-12-11 13:34:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 584 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 119,872 KB |
最終ジャッジ日時 | 2024-11-30 11:38:53 |
合計ジャッジ時間 | 14,621 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 TLE * 1 |
ソースコード
#!/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')