結果
問題 |
No.607 開通777年記念
|
ユーザー |
![]() |
提出日時 | 2018-08-04 13:42:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 438 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,256 KB |
最終ジャッジ日時 | 2024-09-19 17:48:39 |
合計ジャッジ時間 | 4,538 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 TLE * 1 -- * 5 |
ソースコード
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")