Parra
this is another example
Parra
the function has the same signature, i changed the body of main a little bit to adapt it to the new name
Parra
if the signature changes, you should adapt it too
Parra
this is like writing a history
Parra
you have a blank paper and you can write what you want in there
Parra
😄👍
🐰🐾 سمیه
Ok, I think I got it. But if I got stuck, I would summon you again 😊
🐰🐾 سمیه
Thanks 🌷🌷🌷
Anonymous
Hello everyone
MᏫᎻᎯᎷᎷᎬᎠ
Hi
itsmanjeet
I have a doubt
In a program
If we create a variable in a function A
On execution the main fuction call function A
And function A finished
But main is still executing then variables in function A still occupy space or destroy after the execution of fuction A when main function is still executing
Ariana
variables in a function would just disappear after return
itsmanjeet
ok thank for help
Ariana
wut
Anonymous
Anonymous
https://www.codechef.com/COV42018/problems/DP
Anonymous
I m generating all cases for this problem so I m getting TLE. So,any other method for solving this?
Dima
/ban read the rules
Parra
klimi
Parra
hello Kimli
Anonymous
Hey guys! how is everyone doing?
MᏫᎻᎯᎷᎷᎬᎠ
Good
Anonymous
I need help in writing C++ program for checking if a Hidato puzzle is solved correctly. Can someone help me?
BinaryByter
BinaryByter
no, i really do
klimi
BinaryByter
change it to Klimi Goebbels
Roxifλsz 🇱🇹
BinaryByter
xD
Anonymous
Mat
PresHacks
Write a program that calculates a car’s gas mileage. The program should ask the user
to enter the number of gallons of gas the car can hold and the number of miles it can
be driven on a full tank. It should then display the number of miles that may be driven
per gallon of gas
klimi
Dima
So what's your problem
Dima
Do it
Dima
You can't count a car mileage?
PresHacks
please it is a request
Dima
Now, read the rules and think again
klimi
Anonymous
☺️
N3J
Hello guys I'm new here
klimi
Hello new here I'm klimi
Talula
Elnee
Anonymous
Talula
Just checking if it's correctly solved? Duh.. that is simple.
Anonymous
really?
Anonymous
yes
Talula
Array has to be 2 deminsional...
Talula
if the position in the array is filled with any number that isn't correct the solution is wrong.
Talula
Trick is to solve it using program... can be done but you'll have to go back and forth.
Talula
1. Search in array for 1
2. Find the cell in the array that has value 2 if it does... move to value 2... or it's wrong.
Talula
Move to cell which has 2 and search for the cells around it that has value 3...
Talula
And so on.
Talula
Elnee
I mean that "search the cells around" can be difficult cause all arrays have different sizes
Elnee
As for me, but I'm noob
klimi
BinaryByter
BinaryByter
then search the node with "1"
BinaryByter
and go through each node
BinaryByter
until i've reached every node
BinaryByter
then i'd check wether each node was filled
Talula
Ariana
imo a list of arrays of pairs is better for storing the shape of the map
list of arrays -> to store where you can place a number and current state
of arrays -> (row/column number, current number)
klimi
Talula
Elnee
Guys, I need different help.
How can I calc function values with step 0.1 in c++? When I declare variable double step = 0.1 actually that is 0.10000000000001
So I can't write loop with that step cause it's never execute last step. But even if I'll write for loop with integer step I need function values for x 0.1, not 0.1000000000001
Talula
Elnee
BinaryByter
to check wether what they are filled with makes sense
BinaryByter
but that doesnt mean that every node was filled
BinaryByter
imagine node 41 wasn't filled
BinaryByter
that would mean that my first algo would report a "yes" even though the puzzle wasnt solved