結果
問題 | No.2300 Substring OR Sum |
ユーザー |
|
提出日時 | 2023-05-14 08:11:54 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 251 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 271,836 KB |
最終ジャッジ日時 | 2024-11-29 22:31:37 |
合計ジャッジ時間 | 46,897 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 TLE * 15 |
ソースコード
ns = int(input())a = tuple(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)