theFlash
theFlash
I want to develop this kind of app
theFlash
Can anyone guide me ?
Harry
Yes
Otumian
/slap
Anonymous
Date Time Problem Description Arun and his sister Usha are challenging each other with some mathematical puzzles. Usha, the cleverer one, has come up with the idea of givingArun 12 distinct digits from 0 to 9, and have him form the largest date time in 2018 with them. Arun is a little nervous, and asks you to help him with a computer program. Usha will give Arun 12 distinct digits. He needs to create a date time combination in the year 2018: the date in the MM/DD form (all four digits must be present), and the time in the format HH:MM (all four digits must be present). The date may be from 01/01 to 12/31 and the time may be from 00:00 to 23:59 (in the 24 hour format). The digits provided may be used only once in the answer that Arun gives. If more than one date time combination may be formed, Arun needs to give the latest valid date time possible in the year 2018. Constraints Single digits (any of 0-9) Input Format A line consisting of a sequence of 12 (not necessarily distinct) single digits (any of 0-9) separated by commas. The sequence will be non-decreasing. Output The maximum possible valid date time in the year 2018. The output must be in the format MM/DD HH:MM If no date time can be constructed, the output should be 0 Explanation Example1 : Input 0,0,1,2,2,2,3,5,9,9,9,9 Output 12/30 22:59 Explanation The 12 digits to be used by Arun are given. The maximum valid date time using only the digits given, and with each digit used at most once is 12/30 22:59 This is the output. Example 2 Input 3,3,3,3,3,3,3,3,3,3,3,3 Output 0 Explanation As no digit less than 3 is present in the input, a valid month cannot be formed. Hence no valid Date time can be formed with the input digits.
Us array ,
Marie
ᅠ has 1/3 warnings... watch out! Reason for last warn: promotion, non english
Otumian
Find the 100th number of the set {0, 1, 3, 6, 10, 15, 21, 28, 36, ...}
klimi
Why?
Otumian
Can anyone guide me ?
Use Android/cpp
klimi
Oh
Mat
Can anyone guide me ?
Have you ever tried something easier to begin with?
klimi
I would like mentor too xD
Mat
klimi
Have you read the pinned message?
We should put in pinned message the /rules too
Mat
From the pinned: * Legitimate requests for help on code and programming questions are ok (no homework requests, or "pls write entire program for me" requests).
klimi
But that exercise is nice
klimi
I'll try to do it
klimi
He had 2 warn
Roxifλsz 🇱🇹
error
You really should post the error, otherwise we won't be able to help you
Roxifλsz 🇱🇹
He had 2 warn
Yeah, but he didn't look like he was going to learn from those warning and stop doing dumb shit
klimi
Yeah
klimi
I was waiting for him to do something again
Mat
error
What a beautiful error description! Go ahead and tell me how we are suppose to help you :/
theFlash
Mat
Have you ever coded?
theFlash
Yeah in c language
Mat
What have you coded?
theFlash
Have you ever coded?
Solved some problems on online judges
Mat
Online judges?
Anonymous
Hi
theFlash
What have you coded?
I did one basic c project Net banking project in c
Mat
Hi
Hi :)
theFlash
Online judges?
Hacker rank and codechef
theFlash
Average coder
Dima
theFlash
Mat
Do you want a mentor, someone who will help you through the creation of the app from the beginning to the end?
theFlash
Yeah
theFlash
I want to create app on my own
klimi
@SrikanthMergu04 it is not necesary to pm members
Mat
I want to create app on my own
Do you think you'll find something like that here?
theFlash
I want to create app on my own
But I want some guidelines What to learn and want to implement
Mat
Try to do it and, if you encounter problems, ask! You already have done a project, so you know how to move yourself
klimi
Sorry bro
its enough to tag them here
klimi
if you want...
theFlash
I don't want full support from their end I just need their support in there free time
Mat
I think the android developer site is a good starting point🤔
klimi
+ they even have in android studio example project
theFlash
I will start with that
theFlash
Thanks
Mat
👍
klimi
Find the 100th number of the set {0, 1, 3, 6, 10, 15, 21, 28, 36, ...}
1 1 2 3 3 6 4 10 5 15 6 21 7 28 8 36 9 45 10 55 11 66 12 78 13 91 14 105 15 120 16 136 17 153 18 171 19 190 20 210 21 231 22 253 23 276 24 300 25 325 26 351 27 378 28 406 29 435 30 465 31 496 32 528 33 561 34 595 35 630 36 666 37 703 38 741 39 780 40 820 41 861 42 903 43 946 44 990 45 1035 46 1081 47 1128 48 1176 49 1225 50 1275 51 1326 52 1378 53 1431 54 1485 55 1540 56 1596 57 1653 58 1711 59 1770 60 1830 61 1891 62 1953 63 2016 64 2080 65 2145 66 2211 67 2278 68 2346 69 2415 70 2485 71 2556 72 2628 73 2701 74 2775 75 2850 76 2926 77 3003 78 3081 79 3160 80 3240 81 3321 82 3403 83 3486 84 3570 85 3655 86 3741 87 3828 88 3916 89 4005 90 4095 91 4186 92 4278 93 4371 94 4465 95 4560 96 4656 97 4753 98 4851 99 4950 100 5050
Mat
Wow, that escalated quickly
klimi
yep
olli
Why not (0+99)*50 ?
klimi
where did you get 50?
olli
(0+99) * 100 / 2
klimi
i dont know how did you get that
olli
??
It's the story of Gauss. Back when he was at elementary school in the late 1700s. You are adding all numbers in a range in this case all numbers from 0 up to 99 Gauss noticed (even in elementary) that you can come up with a simple method 0 + 99 = 99 1 + 98 = 99 2 + 97 = 99 .... 49 +50 = 99 so in the end you have exactly 50 pairs (100 / 2) that sum up to 99. Why not multiply 50 by 99 ? To sum all numbers in the range [a, b] you can just use the formula (a + b) / 2 * number_ of_elements_in_range --- This also works if you need to add any nth number e.g. every odd number in range [0, 10] => (0 + 10) / 2 * 6 = 30 Math is awesome :D
klimi
hm
Anonymous
Can u send virtual function code
John
virtual void nonthing() {}
Dima
maybe you want pure virtual function code? virtual void nonthing() = 0;
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
🤔
klimi
welcome NOOB
Dima
Not Out Of Band
Dima
klimi
welcome welcome welcome
Dima
it feels like 90% of this group are super newbie students who joined to ask who will write theirs homework
Dima