ur mom <3
@TheHappyCow
AIME qualifier hehehehe. Stressing over usaco please halp me
How to get the sum of digits of an number that the user inputs? I have no clue how to start! C:
C++
Description
Given an integer n,please input a serpentine n*n matrix.The format of the matirx is given in sample output.
Input
The first line is an in
Python
OldWizard209 Can you show us what you have tried>??? Posting assignments is breaking one of the rules of the ask section. Please elaborate.2 years ago
Can someone tell me the code of how to do this? I tried using numpy.zeros but then I realized that could only hold integers.
Python
SixBeeps You can do this natively within Python. All a 3D array is is just an array of arrays of arrays, so you could make one as such:
board = [[[]]]
board0[0] = 52 # Would set the first element to 52
`2 years ago
You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two
Python
Is Friday the 13th really an unusual event?
That is, does the 13th of the month land on a Friday less often than on any other day of the week? To ans
Python
Aqtion If you want I can also explain the solution to you, in case my code isn't enough.
@TheHappyCow3 years ago
Is Friday the 13th really an unusual event?
That is, does the 13th of the month land on a Friday less often than on any other day of the week? To ans
Python
InvisibleOne If you still haven't figured this out by tomorrow I might be able to help, but I'm busy tonight.3 years ago
Is Friday the 13th really an unusual event?
That is, does the 13th of the month land on a Friday less often than on any other day of the week? To ans
Python
TheHappyCow can someone answer my question, please? I understand you guys are busy, but I really need to finish this project. ok................. still no one....................3 years ago
I'm working on code in repl.it for USACO I want to save it in my folder as friday.py. Is there any way I can do that? Or should I just copy and paste
Python
In line 15, I don't know why you need to add the,0 at the end. I can't seem to figure it out. Credit goes to @Sabertooth, they wrote this wonderful co
PattanAhmed @TheHappyCow Hi,
It's because the other elements from line 41 are dependent on that.
If you remove this ,0 from there, the indexes of the lists from line 41 goes out of range.
This might be the answer to your question
*Hope this helps
Please mark my answer if this helps*3 years ago
Coder100 Hi! The reason why you need an extra , 0 is because it is inside another array and the second index 0 is being used to calculate costs.
is this what you want?3 years ago
Coder100 Hi! Try changing the input variable to something else, maybe like text. This is because input is a reserved function.3 years ago
TheHappyCow Thanks for the help! I didn't expect so many people would answer so quickly. I appreciate it! Have a good day!3 years ago
Muffinlavania You cant change main.py into anything else, but you can still import it, like this
#In any other file
import main
Main.py is like a special file, it cant be renamed properly. its name when importing is main two underscores on each side3 years ago
Coder100 Sorry, that file is pinned and cannot be edited. You can use a hacky method to rename it, however.
Hit ctrl+shift+s:
rename main.py [new file].py
However, then you will have to configure how the repl is run in order to make the repl work. Create a .replit file:
run="python [new file].py"
`3 years ago