Well seccomp is disabled. Deal with it. You a mega ultra security freak, don't use it. I won't be re-enabling seccomp though. No offense to anyone.
# You are given N comma separated Strings. You need to form all possible legal subsets of these N strings. These subsets will be a combination of zero or more of these N strings. After forming the subsets, they will be ranked in a particular order. Rank 1 will always be an empty set. Next N ranks will be the N strings that appear in the order they are provided in the input. After N+ ranks, you need to combine the N strings such that all legal combinations are formed. Legal combination menas that the string that appears to the left of a particular string in the input, can never appear to the right of the string when subsets are formed. A subset with less elements will be ranked higer than a subset with more elements.
# Input Format
# The first line will contain an integer N which denotes the number of Strings.
# The second line contains an integer R, for which you have to find the Rth subset from all legal subsets.
# The third line contains N comma separated Strings from which you need to form the subsets.
# Output Format
# Print the Rth subset from all legal subsets.
# Constraints
# 0 < N <- 10^2
# 0 < R <= 10^18
# Sample Input
# 2
# 4
# a,b
# Sample Output
# a,b
N = int(input())
R = int(input())
S = input().split(',')
# function to form all legal subsets using list comprehension
def form_subsets(S):
subsets = [[]]
for i in range(len(S)):
subsets.extend([s+[S[i]] for s in subsets])
return subsets
# function to sort the subsets
def sort_subsets(subsets):
subsets.sort(key=len)
#subsets.sort(key=lambda x: x[0])
return subsets
# function to print the Rth subset
def print_subset(subsets, R):
return subsets[R-1]
# main function
def main():
subsets = form_subsets(S)
subsets = sort_subsets(subsets)
su = print_subset(subsets, R)
print(','.join(str(x) for x in su).strip())
# call main function
main()
TheTablaster's Shitposting
# You are given N comma separated Strings. You need to form all possible legal subsets of these N strings. These subsets will be a combination of zero or more of these N strings. After forming the subsets, they will be ranked in a particular order. Rank 1…
optimize it to under 1 sec ploxx
Forwarded from PixelBlaster Updates
=============================
PixelBlaster-OS | 5.0 | Android 12
Device : OnePlus 8T/9R| lemonkebab
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Support Group : HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Clean flash is mandatory.
*Alternate download link if for some reason github phuks up again
#A12 #PixelBlaster #lemonkebab
PixelBlaster-OS | 5.0 | Android 12
Device : OnePlus 8T/9R| lemonkebab
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Support Group : HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Clean flash is mandatory.
*Alternate download link if for some reason github phuks up again
#A12 #PixelBlaster #lemonkebab
Forwarded from PixelBlaster Updates
=============================
PixelBlaster-OS | 5.0 | Android 12
Device : Realme 3 Pro | RMX1851
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Clean flash is mandatory.
#A12 #PixelBlaster #RMX1851
PixelBlaster-OS | 5.0 | Android 12
Device : Realme 3 Pro | RMX1851
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Clean flash is mandatory.
#A12 #PixelBlaster #RMX1851
Forwarded from PixelBlaster Updates
=============================
PixelBlaster-OS | 5.1 | Android 12
Device : Realme 3 Pro | RMX1851
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
#A12 #PixelBlaster #RMX1851
PixelBlaster-OS | 5.1 | Android 12
Device : Realme 3 Pro | RMX1851
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
#A12 #PixelBlaster #RMX1851
Forwarded from PixelBlaster Updates
=============================
PixelBlaster-CAF | 5.1 | Android 12
Device : OnePlus 8T/9R| lemonkebab
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Support Group : HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Bootloader can be locked
* Follow the instructions on the download page to lock bootloader or you will face bootloop and will have to use msm tool.
*Flash the rom normally if you don't want to lock the bootloader.
#A12 #PixelBlaster #lemonkebab
PixelBlaster-CAF | 5.1 | Android 12
Device : OnePlus 8T/9R| lemonkebab
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Support Group : HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Bootloader can be locked
* Follow the instructions on the download page to lock bootloader or you will face bootloop and will have to use msm tool.
*Flash the rom normally if you don't want to lock the bootloader.
#A12 #PixelBlaster #lemonkebab
=============================
PixelBlaster-OS | 5.2 | Android 12
Device : Realme 3 Pro | RMX1851
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
#A12 #PixelBlaster #RMX1851
PixelBlaster-OS | 5.2 | Android 12
Device : Realme 3 Pro | RMX1851
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
#A12 #PixelBlaster #RMX1851
Forwarded from PixelBlaster Updates
=============================
PixelBlaster-CAF | 5.3 | Android 12
Device : OnePlus 8T/9R| lemonkebab
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Support Group : HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Users already on 5.2 should recieve OTA update
*Bootloader can be locked
* Follow the instructions on the download page to lock bootloader or you will face bootloop and will have to use msm tool.
*Flash the rom normally if you don't want to lock the bootloader.
#A12 #PixelBlaster #lemonkebab
PixelBlaster-CAF | 5.3 | Android 12
Device : OnePlus 8T/9R| lemonkebab
Maintainer - @V3NK4135H
=============================
▪️ Download : HERE
▪️ Build Status : GAPPS
▪️ Build Type : OFFICIAL
▪️ XDA Post : HERE
▪️ Website : HERE
▪️ Changelogs: HERE
▪️ Support Group : HERE
▪️ Stay Tuned : Group | Channel
*Safetynet passes by default
*Users already on 5.2 should recieve OTA update
*Bootloader can be locked
* Follow the instructions on the download page to lock bootloader or you will face bootloop and will have to use msm tool.
*Flash the rom normally if you don't want to lock the bootloader.
#A12 #PixelBlaster #lemonkebab