結果
問題 | No.2300 Substring OR Sum |
ユーザー |
|
提出日時 | 2023-05-14 08:10:57 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 534 ms |
コンパイル使用メモリ | 82,364 KB |
実行使用メモリ | 310,016 KB |
最終ジャッジ日時 | 2024-11-29 22:29:53 |
合計ジャッジ時間 | 47,257 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 TLE * 15 |
ソースコード
ns = int(input())a = list(map(int, input().split()))out = 0def And(x):ad = 0for i in x:ad = ad | ireturn adfor n in range(ns):for i in range(ns - n):out += And(a[n : n + i + 1])print(out)