結果
問題 |
No.2300 Substring OR Sum
|
ユーザー |
|
提出日時 | 2023-05-14 08:10:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 48,260 KB |
最終ジャッジ日時 | 2024-11-29 22:28:27 |
合計ジャッジ時間 | 47,035 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 TLE * 15 |
ソースコード
ns = int(input()) a = list(map(int, input().split())) out = 0 def And(x): ad = 0 for i in x: ad = ad | i return ad for n in range(ns): for i in range(ns - n): out += And(a[n : n + i + 1]) print(out)