結果

問題 No.607 開通777年記念
ユーザー Mr.FukuMr.Fuku
提出日時 2018-08-04 13:42:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 438 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 11,892 KB
実行使用メモリ 14,588 KB
最終ジャッジ日時 2023-10-19 21:49:05
合計ジャッジ時間 4,389 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,148 KB
testcase_01 AC 29 ms
10,148 KB
testcase_02 AC 29 ms
10,148 KB
testcase_03 AC 29 ms
10,148 KB
testcase_04 AC 30 ms
10,148 KB
testcase_05 AC 29 ms
10,148 KB
testcase_06 AC 29 ms
10,148 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
train = [0]*n

for i in range(m):
    cst = list(map(int,input().split()))
    for j in range(n):
        train[j] += cst[j]
    for j in range(n):
        sum_c = 0
        for l in range(j,n):
            sum_c+=train[l]
            if sum_c<777:
                continue
            elif sum_c==777:
                print("YES")
                exit(0)
            else:
                break
print("NO")
0