Jump to content

Wikkie

Member
  • Posts

    189
  • Joined

  • Last visited

Everything posted by Wikkie

  1. Name: WikkiE Rank: Assistant Chief (R6) Candidate: Elvis35 Result: Passed Result at arms test: 5/8 Other information: Congratulations ❤
  2. Name: WikkiE Rank: Assistant Chief (R6) Candidate: Marcoo. Result: Passed Result at arms test: 6/8 Other information: Congratulations ❤
  3. Nume in joc: WikkiE. Contractul ales: https://imgur.com/a/l0vRVTP
  4. - Nume / Name: WikkiE - Rang / Rank: Assistant Chief (R6) - Săptămâna / Week of: 3rd of September, 2022 - 9th of October 2022 - Ofițerii săptămânii / Officers of the week: Locul 1 / 1st Place: TheSirius78.WELDER - 204 puncte/points Locul 2 / 2nd Place: ZeusPBP - 169 puncte/points Locul 3 / 3rd Place: Pointless - 111 puncte/points  - Dovadă premiere / Proof of rewarding: WikkiE/Dabro va va acorda premiile / will reward you.
  5. Nume in joc: WikkiE. Contractul ales: https://imgur.com/a/fywj1HP
  6. - Nume / Name: WikkiE - Rang / Rank: Assistant Chief (R6) - Săptămâna / Week of: 26th of September, 2022 - 2nd of October 2022 - Ofițerii săptămânii / Officers of the week: Locul 1 / 1st Place: Elvis35 - 192 puncte/points Locul 2 / 2nd Place: Pointless - 109 puncte/points Locul 3 / 3rd Place: Shino.Chupacabra - 97 puncte/points  - Dovadă premiere / Proof of rewarding: WikkiE/Dabro va va acorda premiile / will reward you.
  7. Nick: WikkiE.[VODA] Chosen contract
  8. Definition of strong number: Strong number is a special number whose sum of the factorial of digits is equal to the original number. For Example: 145 is strong number. Since, 1! + 4! + 5! = 1 + 4*3*2*1 + 5*4*3*2*1 = 145. Approach: The idea is to iterate from [1, N] and check if any number between the range is strong number or not. If yes then print the corresponding number, else check for the next number. Function 1 : import numpy as np def get_strong_value(limit): for value in range(1,limit+1): # iterate from 1 to end limit+1 value str_value = str(value) # converting the int into string, so that we can split the int value into separate numbers (eg. i='145' = i[1] = 4 ) list_sum = [] # created an empty list to store the final factorial values for i in str_value: # looping through the converted string value mult=[] # created an empty list to store each factorial values for j in range(1,int(i)+1): # here we have converting that string into int, so that we can loop through the range. mult.append(j) # appending each values into the mult list result = np.prod(np.array(mult)) # Here we are using a numpy package to make the multiply easier and making factorial of the whole values in the mult list (eg : if mult list has [4,3,2,1] = 24) list_sum.append(result) # Appending the final factorial values intot the list_sum list verify_strong_value(list_sum,value) # Calling verify_strong_value() function and passing the list_sum and vlaues to check whether the current i values is a strong number Function 2: def verify_strong_value(list_sum,value): Sum = 0 #initiated a temp variable for item in list_sum: # looping through the list_sum list to add all the values Sum = Sum+item # adding the previous value with the next value from the list if(Sum == value): # checking the whether the sum is equal to the value print(f"The given number [{Sum}] is a strong number ") else: # print("The given number is not a strong number ") pass Calling the program: limit = int(input("Enter a limit : ")) # Getting the end limit value from the user . get_strong_value(limit) # initial call of the get_strong_val function Output : Enter a limit : 150 The given number [1] is a strong number The given number [2] is a strong number The given number [145] is a strong number Additional source : source code link : https://colab.research.google.com/drive/1abABPOazmlXSyYbtZH8oryzDS2TPbOT_?usp=sharing I hope it is useful ❤
  9. - Nume / Name: WikkiE - Rang / Rank: Assistant Chief (R6) - Săptămâna / Week of: 19th of September, 2022 - 25th of September, 2022 - Ofițerii săptămânii / Officers of the week: Locul 1 / 1st Place: Pointless - 202 puncte/points Locul 2 / 2nd Place: ZeusPBP - 148 puncte/points Locul 3 / 3rd Place: VanatorDeMorse - 57 puncte/points  - Dovadă premiere / Proof of rewarding: WikkiE/Dabro va va acorda premiile / will reward you.
  10. In this post ,we are going to see how to sort an array list manually without using sort() method in python Function 1: def get_list_of_values(): array=[] #Created an empty list to store the values limit = int(input("Enter the number of list elements you want :")) # getting the limit for list generation for i in range(0,limit): # Looping until i reaches the limit value value = int(input(f'Enter the value_{i+1} : ')) # Getting the value from the user array.append(value) # Adding the values to our array list print(f'[Before SORT]\n{array}') sort_the_list_of_values(array) # Calling the sort_the_list_of_values and passing the array list Function 2: def sort_the_list_of_values(array): for i in range(0,len(array)): #looping until i reaches the total length of the list for j in range(0,len(array)-1): #looping until i reaches the total length of the list if(array[j]>array[j+1]): # checking whether the current list value is greater than the next list value temp = array[j] #assigning the current selected list value in a temp variable array[j] = array[j+1] #Swapping the list values array[j+1] = temp #Swapping the list values print(f'[After SORT] {array}') Calling the initial function: get_list_of_values() Output : Enter the number of list elements you want :10 Enter the value_1 : 9 Enter the value_2 : 8 Enter the value_3 : 7 Enter the value_4 : 6 Enter the value_5 : 5 Enter the value_6 : 4 Enter the value_7 : 3 Enter the value_8 : 2 Enter the value_9 : 1 Enter the value_10 : 0 [Before SORT] [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] [After SORT] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Additional source : Full source code link : https://colab.research.google.com/drive/1ypwXhuXum_XqWbz3zI1NloaTEJ3jOX1C?usp=sharing Useful sorting algorithm link : click me I hope it is useful ❤
  11. Nice and simple program 👍
  12. Nick: WikkiE.[VODA] Chosen contract:
  13. - Nume / Name: WikkiE - Rang / Rank: Assistant Chief - Săptămâna / Week of: 12th of September, 2022 - 18th of September, 2022 - Ofițerii săptămânii / Officers of the week: Locul 1 / 1st Place: Shino.Chupacabra - 81 puncte/points Locul 2 / 2nd Place: Macu - 73 puncte/points Locul 3 / 3rd Place: Pointless - 68 puncte/points  - Dovadă premiere / Proof of rewarding: WikkiE/Dabro va va acorda premiile / will reward you.
  14. I experienced the same bug many times
  15. Nick: WikkiE. Chosen contract:https://imgur.com/a/qcMgeqy
  16. Name: WikkiE Rank: Assistant Chief (6) Candidate: .Saitis Result theoretical test: 3/3 Result practical test: - Result SWAT test: - Total result: Failed Other information: Better luck next time ❤
  17. - Nume / Name: WikkiE - Rang / Rank: Assistant Chief - Săptămâna / Week of: 5th of September, 2022 - 11th of September, 2022 - Ofițerii săptămânii / Officers of the week: Locul 1 / 1st Place: xfirex - 147 puncte/points Locul 2 / 2nd Place: Pointless - 87 puncte/points Locul 3 / 3rd Place: Macu - 83 puncte/points  - Dovadă premiere / Proof of rewarding: WikkiE/Dabro va va acorda premiile / will reward you.
  18. Description: A simple program to check the greatest number our of 3 enteries Photos / Video: Download link: https://colab.research.google.com/drive/1aC_zOZQ2msRPIFl_uKgz-3wltAaNayh5?usp=sharing Source (optional): - Other mentions: I hope it is useful to someone ❤️
  19. - Nume / Name: WikkiE - Rang / Rank: Assistant Chief - Săptămâna / Week of: 29th of August, 2022 - 4th of September, 2022 - Ofițerii săptămânii / Officers of the week: Locul 1 / 1st Place: Pointless - 186 puncte/points Locul 2 / 2nd Place: VALENTiN.POLITAI - 64 puncte/points Locul 3 / 3rd Place: xfirex - 60 puncte/points  - Dovadă premiere / Proof of rewarding: Dabro va va acorda premiile / will reward you.
  20. Happy birthday and wish you many more happy returns of the day B-zone!
  21. pretty simple and clean code
  22. Name: WikkiE Rank: Assistant Chief (R6) Candidate: FROG Result: Passed Result at arms test: 8/8 Other information: Congratulations ❤
  23. Name: WikkiE Rank: Assistant Chief (6) Candidate: Mercury Result theoretical test: 1/3 Result practical test: 10/10 Result SWAT test: - Total result: Passed Other information: Welcome ❤ Name: WikkiE Rank: Assistant Chief (6) Candidate: ZeusPBP Result theoretical test: 3/3 Result practical test: - Result SWAT test: - Total result: Passed Other information: Better luck next time
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.