본문 바로가기

Day 7: Arrays Task Given an array, , of integers, print 's elements in reverse order as a single line of space-separated numbers.Input FormatThe first line contains an integer, (the size of our array). The second line contains space-separated integers describing array 's elements.Constraints, where is the integer in the array.Output FormatPrint the elements of array in reverse order as a single line of space-.. 더보기
Day 6: Let's Review Task Given a string, , of length that is indexed from to , print its even-indexed and odd-indexed characters as space-separated strings on a single line (see the Sample below for more detail).Note: is considered to be an even index.Input FormatThe first line contains an integer, (the number of test cases). Each line of the subsequent lines contain a String, .ConstraintsOutput FormatFor each Stri.. 더보기
Day 3: Intro to Conditional Statements Task Given an integer, , perform the following conditional actions:If is odd, print WeirdIf is even and in the inclusive range of to , print Not WeirdIf is even and in the inclusive range of to , print WeirdIf is even and greater than , print Not WeirdComplete the stub code provided in your editor to print whether or not is weird.Input FormatA single line containing a positive integer, .Constrai.. 더보기
Day 2: Operators Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as tax) for a meal, find and print the meal's total cost.Note: Be sure to use precise values for your calculations, or you may end up with an incorrectly rounded result!Input FormatThere are lines of numeric input: The f.. 더보기