Senin, 29 Januari 2018

11559 Event Planning - UVa Online Judge

Haii haiii huehehehe.. 😏 meet again and now I will write a problem in UVa Online Judge that name is Event Planning 😀😀

The problem is to output the price for staying in a hotel (all participants must in same hotel) or stay home if there is not enough money to stay in.

 It is easy 😊 you just need to loop all the hotel and check all the rooms that they have. The first thing that you should check about the hotel is the number of the room they have. If it has rooms at least or higher with the number of participants, then it should be processed to the next step 😀

The next step is to count the hotel prices multiply with participants, if it is larger than the budged has, then we should go to another hotel. If the budget is enough, let's processed it with the next step 😀😉

The next step (or last step) is to store the calculation of the price hotel multiplying with participant in a variable (e.g : variable ans), then compare it to the variable that will be outputted later. Because we will choose a hotel that are the cheapest, let's make a variable again that initialized with a huge number (e.g : ans2 = 500001), then we will compare that variable (ans2) with the variable before (ans) and assign it to the variable ans2. The comparison that be used is to search who's the minimum of both (ans2 or ans). From there, we got the answer where's the cheapest hotel that can be staying 😃😃😃😃😀😀😀😊

Let's check the code 😏



Okkayyy ^o^)/ I think that's all for this problem 😁😁😁 if you have questions or you want to request another problem, let me know from the comment below, okaay? 😁😁😀😉

(Link to download source code above is here)
Thank youuuu...

Label: ,

Minggu, 28 Januari 2018

11727 Cost Cutting - UVa Online Judge

Hai hai haiii 😀/ I come back againnn 😄😁😁 nowww I will discuss about problem 11727 Cost Cutting that are one of the problem in UVa Online Judge 😁😁😊

The goal from the that problem is to output the middle salary 😏/ 😀 It's easy, we just need to sort the input and output the middle one by calling the index 1 of that array 😊😀😀

Here's my code:


Click here if you want to download the source code above :)

I think that's all for this problem 😀 Ohya, do not forget to output "Case 1:, Case 2:, .." because it can result Wrong Answer, like I was did 😱😩
Okaayyyy, feel free to comment and ask id there's another confusing from my code or any problem, keep spirittt and don't surrender to keep practicing 😉😄😀 bye 😀/

Label: ,

Sabtu, 27 Januari 2018

11498 Division of Nlogonia - UVa Online Judge

Hii 😁/ meet again 😃 today in another post and another topic of course 😉😛
Here I will discuss another problem from UVa Online Judge, it is 11498 - Division of Nlogonia 😀 the problem is very simple, just like my previous problem.

In this problem, we asked to output "divisa" if one of the coordinates is division point.. and we should output "NE" when the coordinates is in Northeast of the division point, "NO" when the coordinates is in Northwest of the division point, "SE" and "SO" is similar like that 😁😁😋😏

For doing that, we just need the command if-else 😀 because we just need to check if it is in the divisa or NE or NO etc 😁

Here is check my code:


And if you want to download the source code above, just click here.

That's all 😀 just make sure try to understand by yourself first 😊 after it got difficult to understand, you can leave a comment in the comment below 😀😀 I'll very happy if you can leave me a note in the comment 😉 thank you, and see you laterrr 😀😀😀/

Label: ,

Jumat, 26 Januari 2018

11172 Relational Operator - UVa Online Judge

Helloo.. today I will discuss about one of the problems at UVa Online Judge, it is 11172 Relational Operator 😀

The meaning of this problem is very simple 😋 you just asked to output the suitable operator from the data given 😀😀
First line is the number of test, then the line after that is the pair of data that you should give suitable operator for them 😀😀😊

Here's my code:



It's a simple code, try to understand with your self first.. then when you still confused with what is going on in that script, tell me in the comment below.. I will answer your question 😉😃😉

Ohya if you want to download the code above, just click here 😀

Okayyy that all 😀😀 please leave comment.. critics me it's fine 😉 your comment and advice will make me better to write the next topics 😊 thank's for readinggg 😁/

Label: ,

Rabu, 24 Januari 2018

Register in UVA Online Judge

Hello 😀/
Here's I will show you how to Register in website "UVA Online Judge" 😊

For introduction, UVA Online Judge is a website that used to practice competitive programming's skill 😀 There are many problem collection that created for user exercise so the user can step by step being the master of programming and can winning the competition about competitive programing later 😃😃😀👍💨💨

Okkay , let's start this 😊😋
The first that you must do is go to the UVA Online Judge's website.
In there, click the Register button that located in left of the website.


After that, fill in the blank to the registration's form that provided.

Name is your full real name
Email is your email that will be used to register in UVA Online Judge
Username is the name that will you use to login and another user sees you
Password is the new password that will you use to login in UVA Online Judge later
Verify Password, type same as field password
Former UVa ID, I do not fill this field, no problem
Results email, when checked, you will be informed in your email about the result of each submission when solving problems
Virtual Judge, I'm not checked this field too.
Then solve the reCAPTCHA and click on Register.

You will be given this information:

It's mean that your fill to the register form has been recorded, and you must check your email (email that you use to register) for completing the registration. Soo, wait for what? Let's check the email ^o^)/ 😄

Here's the content of email that sent from UVa Online Judge, just click the given link 😏

And you'll be directly to the UVa Online Judge's website and given this information


Okkayyy, from this, you've successfully register in UVa Online Judge, horeeeee \😄/ 😂😀
Now, let's try to login.. fill the login's field in the left section of the web

Then press login

Taraaaaaaa, you've successfully login.. Congratulation 😷😷😳😊😉


Okay, that's all from this topic, please leave your comment here.. so I can be motivated to make new article because I know that there's people who read my writing, huwaaaaa😍😍😍😏 So please feel free to ask in the comment or just to say "Hi" about this topic 😂😄😛
Okkay, thanks have reading my blog 💓👋

Label:

My First Post :D)/

Hello 😀 this is my first post 😃😁
Just to try my blog 😉

Will add new topic soon 😄 as fast as possible 😀😀😋

Okaayyy 😃/ Seee you again later in the next post 😖😃😃/😀😉😊