結果
| 問題 | No.607 開通777年記念 | 
| コンテスト | |
| ユーザー |  Fukumoto | 
| 提出日時 | 2020-06-08 22:32:50 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 393 bytes | 
| コンパイル時間 | 700 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 43,984 KB | 
| 最終ジャッジ日時 | 2024-12-26 15:05:48 | 
| 合計ジャッジ時間 | 11,641 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 10 | 
ソースコード
import sys
input = sys.stdin.readline
from collections import *
import numpy as np
N, M = list(map(int, input().split()))
A = np.zeros(N, dtype=np.int)
for i in range(M):
    a = list(map(int, input().split()))
    A += a
    S = np.cumsum(A)
    c = Counter()
    c[777] = 1
    for s in S:
        if c[s]: 
            print('YES')
            sys.exit()
        c[777+s] += 1
print('NO')
            
            
            
        