<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Codes Quiz</title><description>-Check your coding efficiency</description><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><pubDate>Wed, 18 Dec 2024 19:22:44 -0800</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">28</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://codesquiz.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>-Check your coding efficiency</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>test</title><link>http://codesquiz.blogspot.com/2021/09/test.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Sun, 5 Sep 2021 23:08:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-7845881826866129112</guid><description>  &lt;head&gt;
    &lt;title&gt;Bank Customer Feedback Form&lt;/title&gt;
    &lt;link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet"&gt;
    &lt;link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"&gt;
    &lt;style&gt;
      html, body {
      min-height: 100%;
      }
      body, div, form, input, select { 
      padding: 0;
      margin: 0;
      outline: none;
      font-family: Roboto, Arial, sans-serif;
      font-size: 14px;
      color: #666;
      line-height: 22px;
      }
      h1, h4 {
      margin: 15px 0 4px;
      font-weight: 400;
      }
      h4 {
      margin: 20px 0 4px;
      font-weight: 400;
      }
      span {
      color: red;
      }
      .small {
      font-size: 10px;
      line-height: 18px;
      }
      .testbox {
     // margin-left: 200px; /* Same width as the sidebar + left position in px */
      font-size: 28px; /* Increased text to enable scrolling */
      padding: 0px 10px;
      display: flex;      
      justify-content: center;
      align-items: center;
      height: inherit;
      //padding: 3px;
      }
      form {
      width: 100%;
      padding: 20px;
      background: #fff;
      box-shadow: 0 2px 5px #ccc; 
      }
      input {
      width: calc(100% - 10px);
      padding: 5px;
      border: 1px solid #ccc;
      border-radius: 3px;
      vertical-align: middle;
      }
      input:hover, textarea:hover, select:hover {
      outline: none;
      border: 1px solid #095484;
      background: #e6eef7;
      }
      .title-block select, .title-block input {
      margin-bottom: 10px;
      }
      select {
      padding: 7px 0;
      border-radius: 3px;
      border: 1px solid #ccc;
      background: transparent;
      }
      select, table {
      width: 100%;
      }
      option {
      background: #fff;
      }
      .day-visited, .time-visited {
      position: relative;
      }
      input[type="date"]::-webkit-inner-spin-button {
      display: none;
      }
      input[type="time"]::-webkit-inner-spin-button {
      margin: 2px 22px 0 0;
      }
      .day-visited i, .time-visited i, input[type="date"]::-webkit-calendar-picker-indicator {
      position: absolute;
      top: 8px;
      font-size: 20px;
      }
      .day-visited i, .time-visited i {
      right: 5px;
      z-index: 1;
      color: #a9a9a9;
      }
      [type="date"]::-webkit-calendar-picker-indicator {
      right: 0;
      z-index: 2;
      opacity: 0;
      }
      input[type=number]::-webkit-inner-spin-button {
        cursor: pointer;
      }

      .question-answer label {
      display: block;
      padding: 0 20px 10px 0;
      }
      .question-answer input {
      width: auto;
      margin-top: -2px;
      }
      th, td {
      width: 18%;
      padding: 15px 0;
      border-bottom: 1px solid #ccc;
      text-align: center;
      vertical-align: unset;
      line-height: 18px;
      font-weight: 400;
      word-break: break-all;
      }
      .first-col {
      width: 25%;
      text-align: left;
      }
      textarea {
      width: calc(100% - 6px);
      }
      .btn-block {
      margin-top: 20px;
      text-align: center;
      }
      button {
      width: 150px;
      padding: 10px;
      border: none;
      -webkit-border-radius: 5px; 
      -moz-border-radius: 5px; 
      border-radius: 5px; 
      background-color: #095484;
      font-size: 16px;
      color: #fff;
      cursor: pointer;
      }
      button:hover {
      background-color: #0666a3;
      }
      @media (min-width: 568px) {
      .title-block {
      display: flex;
      justify-content: space-between;
      }
      .title-block select {
      width: 30%;
      margin-bottom: 0;
      }
      .title-block input {
      width: 31%;
      margin-bottom: 0;
      }
      th, td {
      word-break: keep-all;
      }
      }

      .sidebar {
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidebar a {
  display: block;
  color: black;
  padding: 16px;
  text-decoration: none;
}
 
.sidebar a.active {
  background-color: #04AA6D;
  color: white;
}

.sidebar a:hover:not(.active) {
  background-color: #555;
  color: white;
}

div.content {
  margin-left: 200px;
  padding: 1px 16px;
  height: 1000px;
}

@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;



    &lt;div class="testbox"&gt;
      &lt;form action="" method="post"&gt;
        &lt;h1&gt;Compound Interest Calculator&lt;/h1&gt;
        &lt;h4&gt;Principal&lt;span&gt;*&lt;/span&gt;&lt;/h4&gt;
        &lt;input type="text" name="principal" /&gt;
         &lt;h4&gt;Rate&lt;span&gt;*&lt;/span&gt;&lt;/h4&gt;
        &lt;input type="text" name="rate" /&gt;
         &lt;h4&gt;Time&lt;span&gt;*&lt;/span&gt;&lt;/h4&gt;
        &lt;input type="number" name="time" /&gt; 

        &lt;div class="btn-block"&gt;
          &lt;input type="submit" name="submit"&gt;&lt;br&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;?php
        if(isset($_POST['submit']))
        {
            $principal=$_POST['principal'];
            $rate=$_POST['rate'];
            $time=$_POST['time'];
        
         //   $si= ($principal * $rate * $time) / 100;
            $ci= ($principal * (1 + $rate/100)^($time)) - $principal;

            echo "principal :" .$principal ."&lt;br&gt;";
            echo "Simple Interest : ".$ci;
        
    }
    ?&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  &lt;/body&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>calculator</title><link>http://codesquiz.blogspot.com/2021/06/calculator.html</link><author>noreply@blogger.com (Unknown)</author><pubDate>Mon, 28 Jun 2021 09:48:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-7421885330115654908</guid><description>
&lt;script&gt;
		//function that display value
		function dis(val)
		{
			document.getElementById("result").value+=val
		}
		
		//function that evaluates the digit and return result
		function solve()
		{
			let x = document.getElementById("result").value
			let y = eval(x)
			document.getElementById("result").value = y
		}
		
		//function that clear the display
		function clr()
		{
			document.getElementById("result").value = ""
		}
	&lt;/script&gt;
	&lt;!-- for styling --&gt;
	&lt;style&gt;
		.title{
		margin-bottom: 20px;
		text-align:center;
		width: 420px;
		color:green;
		border: solid black 4px;
		}

		input[type="button"]
		{
		
		color: black;
		border: solid black 4px;
		width:100%
		}

		input[type="text"]
		{
		background-color:white;
		border: solid black 4px;
		width:100%
		}
	&lt;/style&gt;

&lt;!-- create table --&gt;

	&lt;div class = title &gt;codextra Calculator&lt;/div&gt;
	&lt;table border="1"&gt;
		&lt;tr&gt;
			&lt;td colspan="3"&gt;&lt;input type="text" id="result"/&gt;&lt;/td&gt;
			&lt;!-- clr() function will call clr to clear all value --&gt;
			&lt;td&gt;&lt;input type="button" value="c" onclick="clr()"/&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;!-- create button and assign value to each button --&gt;
			&lt;!-- dis("1") will call function dis to display value --&gt;
			&lt;td&gt;&lt;input type="button" value="1" onclick="dis('1')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="2" onclick="dis('2')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="3" onclick="dis('3')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="/" onclick="dis('/')"/&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;input type="button" value="4" onclick="dis('4')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="5" onclick="dis('5')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="6" onclick="dis('6')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="-" onclick="dis('-')"/&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;input type="button" value="7" onclick="dis('7')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="8" onclick="dis('8')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="9" onclick="dis('9')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="+" onclick="dis('+')"/&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;input type="button" value="." onclick="dis('.')"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="0" onclick="dis('0')"/&gt; &lt;/td&gt;
			&lt;!-- solve function call function solve to evaluate value --&gt;
			&lt;td&gt;&lt;input type="button" value="=" onclick="solve()"/&gt; &lt;/td&gt;
			&lt;td&gt;&lt;input type="button" value="*" onclick="dis('*')"/&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;




&lt;h1&gt;The input element&lt;/h1&gt;

&lt;form action="/action_page.php"&gt;
  &lt;label for="fname"&gt;First name:&lt;/label&gt;
  &lt;input type="text" id="fname" name="fname"&gt;&lt;br&gt;&lt;br&gt;
  &lt;label for="lname"&gt;Last name:&lt;/label&gt;
  &lt;input type="text" id="lname" name="lname"&gt;&lt;br&gt;&lt;br&gt;
  &lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;

&lt;p&gt;Click the "Submit" button and the form-data will be sent to a page on the 
server called "action_page.php".&lt;/p&gt;



&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Akash and GCD 1, Amazon Developer Hiring Challenge. Hackerearth</title><link>http://codesquiz.blogspot.com/2017/01/akash-and-gcd-1-amazon-developer-hiring.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Unknown)</author><pubDate>Tue, 10 Jan 2017 07:47:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-5440019540078338111</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h2&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
This question is taken from Hackerearth.com&lt;br /&gt;
&lt;br /&gt;
Akash is interested in a new&amp;nbsp;&lt;span style="font-weight: 600;"&gt;function F&lt;/span&gt;&amp;nbsp;such that,&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
&lt;span style="font-weight: 600;"&gt;F(x) = GCD(1, x) + GCD(2, x) + ... + GCD(x, x)&lt;/span&gt;&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
where&amp;nbsp;&lt;span style="font-weight: 600;"&gt;GCD&lt;/span&gt;&amp;nbsp;is the&amp;nbsp;&lt;span style="font-weight: 600;"&gt;Greatest Common Divisor&lt;/span&gt;.&lt;br /&gt;
Now, the problem is quite simple. Given an&amp;nbsp;&lt;span style="font-weight: 600;"&gt;array A&lt;/span&gt;&amp;nbsp;of&amp;nbsp;&lt;span style="font-weight: 600;"&gt;size N&lt;/span&gt;, there are&amp;nbsp;&lt;span style="font-weight: 600;"&gt;2 types&lt;/span&gt;&amp;nbsp;of queries:&lt;br /&gt;
1.&amp;nbsp;&lt;span style="font-weight: 600;"&gt;C X Y&lt;/span&gt;&amp;nbsp;: Compute the value of&amp;nbsp;&lt;span style="font-weight: 600;"&gt;F( A[X] ) + F( A[X + 1] ) + F( A[X + 2] ) + .... + F( A[Y] ) (mod 10^9 + 7)&lt;/span&gt;&lt;br /&gt;
2.&amp;nbsp;&lt;span style="font-weight: 600;"&gt;U X Y&lt;/span&gt;: Update the element of array&amp;nbsp;&lt;span style="font-weight: 600;"&gt;A[X] = Y&lt;/span&gt;&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
&lt;span style="font-weight: 600;"&gt;Input&lt;/span&gt;:&lt;br /&gt;
First line of input contain integer&amp;nbsp;&lt;span style="font-weight: 600;"&gt;N, size of the array.&lt;/span&gt;&lt;br /&gt;
Next line contain&amp;nbsp;&lt;span style="font-weight: 600;"&gt;N space separated integers&lt;/span&gt;&amp;nbsp;the elements of&amp;nbsp;&lt;span style="font-weight: 600;"&gt;A&lt;/span&gt;.&lt;br /&gt;
Next line contain integer&amp;nbsp;&lt;span style="font-weight: 600;"&gt;Q, number of queries.&lt;/span&gt;&lt;br /&gt;
Next Q lines contain one of the two queries.&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
&lt;span style="font-weight: 600;"&gt;Output&lt;/span&gt;:&lt;br /&gt;
For each of the first type of query, output the required sum&amp;nbsp;&lt;span style="font-weight: 600;"&gt;(mod 10^9 + 7)&lt;/span&gt;.&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
&lt;span style="font-weight: 600;"&gt;Constraints&lt;/span&gt;:&lt;br /&gt;
1 &amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;N&lt;/span&gt;&amp;nbsp;&amp;lt;= 10&lt;sup&gt;6&lt;/sup&gt;&lt;br /&gt;
1 &amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;Q&lt;/span&gt;&amp;nbsp;&amp;lt;= 10&lt;sup&gt;5&lt;/sup&gt;&lt;br /&gt;
1 &amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;A&lt;sub&gt;i&lt;/sub&gt;&lt;/span&gt;&amp;nbsp;&amp;lt;= 5*10&lt;sup&gt;5&lt;/sup&gt;&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
For Update ,&lt;br /&gt;
1 &amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;X&lt;/span&gt;&amp;nbsp;&amp;lt;= N&lt;br /&gt;
1 &amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;Y&lt;/span&gt;&amp;nbsp;&amp;lt;= 5*10&lt;sup&gt;5&lt;/sup&gt;&lt;/div&gt;
&lt;div style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; word-spacing: 1px;"&gt;
For Compute ,&lt;br /&gt;
1 &amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;X&lt;/span&gt;&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;span style="font-weight: 600;"&gt;Y&lt;/span&gt;&amp;nbsp;&amp;lt;= N&lt;/div&gt;
&lt;div class="less-margin-2 input-output-container" style="border-radius: 3px; border: 1px solid rgb(229, 231, 232); color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; line-height: 21px; margin: 20px; word-spacing: 1px;"&gt;
&lt;div class="input-output right-border" style="border-right: 1px solid rgb(229, 231, 232); box-sizing: border-box; float: left; width: 358px;"&gt;
&lt;div class="form-label" style="border-bottom: 1px solid rgb(229, 231, 232); padding: 6px 10px;"&gt;
&lt;div class="weight-600 less-margin-right light float-left small" style="color: #9ca3a8; float: left; font-size: 12px; font-weight: 600; margin-right: 5px;"&gt;
SAMPLE INPUT&lt;/div&gt;
&lt;div class="input-output-opt float-right" style="float: right;"&gt;
&lt;/div&gt;
&lt;div class="clear" style="clear: both;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="dark" style="color: #46535e;"&gt;
&lt;pre style="overflow-x: auto; padding: 10px; white-space: pre-wrap; word-wrap: break-word;"&gt;3
3 4 3
6
C 1 2
C 1 3
C 3 3
U 1 4
C 1 3
C 1 2
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="input-output" style="box-sizing: border-box; float: left; width: 358px;"&gt;
&lt;div class="form-label" style="border-bottom: 1px solid rgb(229, 231, 232); padding: 6px 10px;"&gt;
&lt;div class="weight-600 float-left less-margin-right light small" style="color: #9ca3a8; float: left; font-size: 12px; font-weight: 600; margin-right: 5px;"&gt;
SAMPLE OUTPUT&lt;/div&gt;
&lt;div class="input-output-opt float-right" style="float: right;"&gt;
&lt;/div&gt;
&lt;div class="clear" style="clear: both;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="dark" style="color: #46535e;"&gt;
&lt;pre style="overflow-x: auto; padding: 10px; white-space: pre-wrap; word-wrap: break-word;"&gt;13
18
5
21
16
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="clear" style="clear: both;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="standard-margin" style="color: #252c33; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 14px; font-weight: normal; margin: 30px 0px 0px; word-spacing: 1px;"&gt;
&lt;span class="weight-600 form-label" style="font-weight: 600;"&gt;Explanation&lt;/span&gt;&lt;br /&gt;
&lt;div class="less-margin" style="margin: 5px 0px 0px;"&gt;
A[1] = 3, A[2] = 4, A[3] = 3&lt;br /&gt;
F(3) = GCD(1, 3) + GCD(2, 3) + GCD(3, 3) = 1 + 1 + 3 = 5.&lt;br /&gt;
F(4) = GCD(1, 4) + GCD(2, 4) + GCD(3, 4) + GCD(4, 4) = 1 + 2 + 1 + 4 = 8.&lt;br /&gt;
First query, the sum will be F(3) + F(4) = 5 + 8 = 13 (mod 10^9 + 7).&lt;br /&gt;
Second query, the sum will be F(3) + F(4) + F(3) = 5 + 8 + 5 = 18 (mod 10^9 + 7).&lt;br /&gt;
Third query, the sum will be F(3) = 5 (mod 10^9 + 7).&lt;br /&gt;
Fourth query will update A[1] = 4.&lt;br /&gt;
Fifth query, the sum will be F(4) + F(4) + F(3) = 8 + 8 + 5 = 21 (mod 10^9 + 7).&lt;br /&gt;
Sixth query, the sum will be F(4) + F(4) = 8 + 8 = 16 (mod 10^9 + 7).&lt;/div&gt;
&lt;/div&gt;
&lt;div class="standard-margin light small problem-guidelines" style="color: #9ca3a8; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 12px; font-weight: normal; margin: 30px 0px 0px; word-spacing: 1px;"&gt;
&lt;div style="display: table-row;"&gt;
&lt;span class="weight-700" style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; font-weight: 700; line-height: 24px; min-width: 130px;"&gt;Time Limit:&lt;/span&gt;&lt;span style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; line-height: 24px; min-width: 130px;"&gt;1.0 sec(s)&amp;nbsp;for each input file.&lt;/span&gt;&lt;/div&gt;
&lt;div class="less-margin" style="display: table-row; margin: 5px 0px 0px;"&gt;
&lt;span class="weight-700" style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; font-weight: 700; line-height: 24px; min-width: 130px;"&gt;Memory Limit:&lt;/span&gt;&lt;span style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; line-height: 24px; min-width: 130px;"&gt;256 MB&lt;/span&gt;&lt;/div&gt;
&lt;div class="less-margin" style="display: table-row; margin: 5px 0px 0px;"&gt;
&lt;span class="weight-700" style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; font-weight: 700; line-height: 24px; min-width: 130px;"&gt;Source Limit:&lt;/span&gt;&lt;span style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; line-height: 24px; min-width: 130px;"&gt;1024 KB&lt;/span&gt;&lt;/div&gt;
&lt;div class="less-margin" style="display: table-row; margin: 5px 0px 0px;"&gt;
&lt;span class="weight-700" style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; font-weight: 700; line-height: 24px; min-width: 130px;"&gt;Marking Scheme:&lt;/span&gt;&lt;span style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; line-height: 24px; min-width: 130px;"&gt;Marks are awarded if any testcase passes.&lt;/span&gt;&lt;/div&gt;
&lt;div class="less-margin" style="display: table-row; margin: 5px 0px 0px;"&gt;
&lt;span class="weight-700" style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; font-weight: 700; line-height: 24px; min-width: 130px;"&gt;Allowed Languages:&lt;/span&gt;&lt;span style="border-bottom: 1px solid rgba(229, 231, 232, 0.498039); display: table-cell; line-height: 24px; min-width: 130px;"&gt;C, C++, Clojure, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Java 8, JavaScript(Rhino), JavaScript(Node.js), Lisp, Lisp (SBCL), Lua, Objective-C, OCaml, Octave, Pascal, Perl, PHP, Python, Python 3, R(RScript), Racket, Ruby, Rust, Scala, Scala 2.11.8, Swift, Visual Basic&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int gcd (int a, int b)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if (a == 0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return b;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return gcd(b%a, a);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int compute(int *a, int x, int y)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int sum = 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(int i = x; i &amp;lt;= y; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum += a[i-1];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf("%d\n", sum);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int update(int *a, int x, int y)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int sum =0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(int j = 1; j &amp;lt; y; j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; { &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum += gcd(j, y);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; sum += y;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; a[x - 1] = sum;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int n;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int a[100000];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int nq;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int q[100000];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int x , y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; char c;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf("%d", &amp;amp;n);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int t;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d", &amp;amp;t);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int j;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j = 1; j &amp;lt; t; j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a[i] += gcd(j, t);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a[i] += t;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf("%d\n", &amp;amp;nq);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i = 0; i &amp;lt; nq; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%c %d %d\n", &amp;amp;c, &amp;amp;x, &amp;amp;y);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(c == 'C')&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compute(&amp;amp;a, x, y);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; else if (c == 'U')&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update(&amp;amp;a, x, y);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("input = %c\n", c);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>[Solved] Circular Array Rotation solution HackerRank</title><link>http://codesquiz.blogspot.com/2017/01/solved-circular-array-rotation-solution.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Unknown)</author><pubDate>Sat, 7 Jan 2017 14:33:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-2780917847864909392</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="challenge_problem_statement" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_problem_statement_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
John Watson performs an operation called a&amp;nbsp;&lt;em style="border: 0px; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;right circular rotation&lt;/em&gt;&amp;nbsp;on an array of integers,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.838ex;" viewbox="0 -863.1 6711.8 1223.9" width="15.589ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M118 -250V750H255V710H158V-210H255V-250H118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(278,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(1261,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1707,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(2690,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3135,0)"&gt;&lt;path d="M78 60Q78 84 95 102T138 120Q162 120 180 104T199 61Q199 36 182 18T139 0T96 17T78 60ZM525 60Q525 84 542 102T585 120Q609 120 627 104T646 61Q646 36 629 18T586 0T543 17T525 60ZM972 60Q972 84 989 102T1032 120Q1056 120 1074 104T1093 61Q1093 36 1076 18T1033 0T990 17T972 60Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(4474,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;g transform="translate(424,0)"&gt;&lt;path d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(975,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(6433,0)"&gt;&lt;path d="M22 710V750H159V-250H22V-210H119V710H22Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;. After performing one&amp;nbsp;&lt;em style="border: 0px; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;right circular rotation&lt;/em&gt;&amp;nbsp;operation, the array is transformed from&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.838ex;" viewbox="0 -863.1 6711.8 1223.9" width="15.589ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M118 -250V750H255V710H158V-210H255V-250H118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(278,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(1261,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1707,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(2690,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3135,0)"&gt;&lt;path d="M78 60Q78 84 95 102T138 120Q162 120 180 104T199 61Q199 36 182 18T139 0T96 17T78 60ZM525 60Q525 84 542 102T585 120Q609 120 627 104T646 61Q646 36 629 18T586 0T543 17T525 60ZM972 60Q972 84 989 102T1032 120Q1056 120 1074 104T1093 61Q1093 36 1076 18T1033 0T990 17T972 60Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(4474,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;g transform="translate(424,0)"&gt;&lt;path d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(975,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(6433,0)"&gt;&lt;path d="M22 710V750H159V-250H22V-210H119V710H22Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;to&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-3-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.838ex;" viewbox="0 -863.1 8132.1 1223.9" width="18.887ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M118 -250V750H255V710H158V-210H255V-250H118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(278,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;g transform="translate(424,0)"&gt;&lt;path d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(975,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(2237,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2682,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(3665,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(4110,0)"&gt;&lt;path d="M78 60Q78 84 95 102T138 120Q162 120 180 104T199 61Q199 36 182 18T139 0T96 17T78 60ZM525 60Q525 84 542 102T585 120Q609 120 627 104T646 61Q646 36 629 18T586 0T543 17T525 60ZM972 60Q972 84 989 102T1032 120Q1056 120 1074 104T1093 61Q1093 36 1076 18T1033 0T990 17T972 60Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(5449,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(5895,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;g transform="translate(424,0)"&gt;&lt;path d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(975,0)"&gt;&lt;path d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(7853,0)"&gt;&lt;path d="M22 710V750H159V-250H22V-210H119V710H22Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
Watson performs this operation&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-4-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 521.5 936.9" width="1.211ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M121 647Q121 657 125 670T137 683Q138 683 209 688T282 694Q294 694 294 686Q294 679 244 477Q194 279 194 272Q213 282 223 291Q247 309 292 354T362 415Q402 442 438 442Q468 442 485 423T503 369Q503 344 496 327T477 302T456 291T438 288Q418 288 406 299T394 328Q394 353 410 369T442 390L458 393Q446 405 434 405H430Q398 402 367 380T294 316T228 255Q230 254 243 252T267 246T293 238T320 224T342 206T359 180T365 147Q365 130 360 106T354 66Q354 26 381 26Q429 26 459 145Q461 153 479 153H483Q499 153 499 144Q499 139 496 130Q455 -11 378 -11Q333 -11 305 15T277 90Q277 108 280 121T283 145Q283 167 269 183T234 206T200 217T182 220H180Q168 178 159 139T145 81T136 44T129 20T122 7T111 -2Q98 -11 83 -11Q66 -11 57 -1T48 16Q48 26 85 176T158 471L195 616Q196 629 188 632T149 637H144Q134 637 131 637T124 640T121 647Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;times. To test Sherlock's ability to identify the current element at a particular position in the rotated array, Watson asks&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-5-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.009ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -576.1 460.5 865.1" width="1.07ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q340 441 372 389Q373 390 377 395T388 406T404 418Q438 442 450 442Q454 442 457 439T460 434Q460 425 391 149Q320 -135 320 -139Q320 -147 365 -148H390Q396 -156 396 -157T393 -175Q389 -188 383 -194H370Q339 -192 262 -192Q234 -192 211 -192T174 -192T157 -193Q143 -193 143 -185Q143 -182 145 -170Q149 -154 152 -151T172 -148Q220 -148 230 -141Q238 -136 258 -53T279 32Q279 33 272 29Q224 -10 172 -10Q117 -10 75 30T33 157ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;queries, where each query consists of a single integer,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-6-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="1.676ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -576.1 878.5 721.6" width="2.04ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, for which you must print the element at index&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-7-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="1.676ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -576.1 878.5 721.6" width="2.04ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;in the rotated array (i.e., the value of&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-8-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.009ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -576.1 1250.7 865.1" width="2.905ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;).&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_input_format" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_input_format_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Input Format&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_input_format_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
The first line contains&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 500.5 936.9" width="1.162ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;space-separated integers,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="1.676ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -576.1 600.5 721.6" width="1.395ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-3-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 521.5 936.9" width="1.211ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M121 647Q121 657 125 670T137 683Q138 683 209 688T282 694Q294 694 294 686Q294 679 244 477Q194 279 194 272Q213 282 223 291Q247 309 292 354T362 415Q402 442 438 442Q468 442 485 423T503 369Q503 344 496 327T477 302T456 291T438 288Q418 288 406 299T394 328Q394 353 410 369T442 390L458 393Q446 405 434 405H430Q398 402 367 380T294 316T228 255Q230 254 243 252T267 246T293 238T320 224T342 206T359 180T365 147Q365 130 360 106T354 66Q354 26 381 26Q429 26 459 145Q461 153 479 153H483Q499 153 499 144Q499 139 496 130Q455 -11 378 -11Q333 -11 305 15T277 90Q277 108 280 121T283 145Q283 167 269 183T234 206T200 217T182 220H180Q168 178 159 139T145 81T136 44T129 20T122 7T111 -2Q98 -11 83 -11Q66 -11 57 -1T48 16Q48 26 85 176T158 471L195 616Q196 629 188 632T149 637H144Q134 637 131 637T124 640T121 647Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, and&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-4-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.009ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -576.1 460.5 865.1" width="1.07ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q340 441 372 389Q373 390 377 395T388 406T404 418Q438 442 450 442Q454 442 457 439T460 434Q460 425 391 149Q320 -135 320 -139Q320 -147 365 -148H390Q396 -156 396 -157T393 -175Q389 -188 383 -194H370Q339 -192 262 -192Q234 -192 211 -192T174 -192T157 -193Q143 -193 143 -185Q143 -182 145 -170Q149 -154 152 -151T172 -148Q220 -148 230 -141Q238 -136 258 -53T279 32Q279 33 272 29Q224 -10 172 -10Q117 -10 75 30T33 157ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, respectively.&lt;br /&gt;
The second line contains&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-5-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="1.676ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -576.1 600.5 721.6" width="1.395ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;space-separated integers, where each integer&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-6-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 345.5 936.9" width="0.802ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;describes array element&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-7-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.009ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -576.1 873.8 865.1" width="2.029ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;(where&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-8-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.343ex" role="img" style="vertical-align: -0.505ex;" viewbox="0 -791.3 4114.6 1008.6" width="9.557ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2457,0)"&gt;&lt;path d="M694 -11T694 -19T688 -33T678 -40Q671 -40 524 29T234 166L90 235Q83 240 83 250Q83 261 91 266Q664 540 678 540Q681 540 687 534T694 519T687 505Q686 504 417 376L151 250L417 124Q686 -4 687 -5Q694 -11 694 -19Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3514,0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;).&lt;br /&gt;
Each of the&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-9-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.009ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -576.1 460.5 865.1" width="1.07ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q340 441 372 389Q373 390 377 395T388 406T404 418Q438 442 450 442Q454 442 457 439T460 434Q460 425 391 149Q320 -135 320 -139Q320 -147 365 -148H390Q396 -156 396 -157T393 -175Q389 -188 383 -194H370Q339 -192 262 -192Q234 -192 211 -192T174 -192T157 -193Q143 -193 143 -185Q143 -182 145 -170Q149 -154 152 -151T172 -148Q220 -148 230 -141Q238 -136 258 -53T279 32Q279 33 272 29Q224 -10 172 -10Q117 -10 75 30T33 157ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;subsequent lines contains a single integer denoting&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-10-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="1.676ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -576.1 878.5 721.6" width="2.04ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_constraints" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_constraints_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Constraints&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_constraints_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;ul style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 10px 0px 20px 20px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.505ex;" viewbox="0 -1006.6 5224 1223.9" width="12.133ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2712,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3769,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="translate(500,0)"&gt;&lt;/path&gt;&lt;g transform="translate(1001,393)"&gt;&lt;path d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="3.009ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -1006.6 5497.3 1295.7" width="12.768ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(529,-150)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g transform="translate(2986,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(4042,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="translate(500,0)"&gt;&lt;/path&gt;&lt;g transform="translate(1001,393)"&gt;&lt;path d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-3-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.505ex;" viewbox="0 -1006.6 5145 1223.9" width="11.95ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M121 647Q121 657 125 670T137 683Q138 683 209 688T282 694Q294 694 294 686Q294 679 244 477Q194 279 194 272Q213 282 223 291Q247 309 292 354T362 415Q402 442 438 442Q468 442 485 423T503 369Q503 344 496 327T477 302T456 291T438 288Q418 288 406 299T394 328Q394 353 410 369T442 390L458 393Q446 405 434 405H430Q398 402 367 380T294 316T228 255Q230 254 243 252T267 246T293 238T320 224T342 206T359 180T365 147Q365 130 360 106T354 66Q354 26 381 26Q429 26 459 145Q461 153 479 153H483Q499 153 499 144Q499 139 496 130Q455 -11 378 -11Q333 -11 305 15T277 90Q277 108 280 121T283 145Q283 167 269 183T234 206T200 217T182 220H180Q168 178 159 139T145 81T136 44T129 20T122 7T111 -2Q98 -11 83 -11Q66 -11 57 -1T48 16Q48 26 85 176T158 471L195 616Q196 629 188 632T149 637H144Q134 637 131 637T124 640T121 647Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2633,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3690,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="translate(500,0)"&gt;&lt;/path&gt;&lt;g transform="translate(1001,393)"&gt;&lt;path d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-4-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.509ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -791.3 5130.6 1080.4" width="11.916ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M33 157Q33 258 109 349T280 441Q340 441 372 389Q373 390 377 395T388 406T404 418Q438 442 450 442Q454 442 457 439T460 434Q460 425 391 149Q320 -135 320 -139Q320 -147 365 -148H390Q396 -156 396 -157T393 -175Q389 -188 383 -194H370Q339 -192 262 -192Q234 -192 211 -192T174 -192T157 -193Q143 -193 143 -185Q143 -182 145 -170Q149 -154 152 -151T172 -148Q220 -148 230 -141Q238 -136 258 -53T279 32Q279 33 272 29Q224 -10 172 -10Q117 -10 75 30T33 157ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2572,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3629,0)"&gt;&lt;path d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z" stroke-width="1"&gt;&lt;/path&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="translate(500,0)"&gt;&lt;/path&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1" transform="translate(1001,0)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-5-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.343ex" role="img" style="vertical-align: -0.505ex;" viewbox="0 -791.3 6659.1 1008.6" width="15.466ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2990,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(4047,0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(5157,0)"&gt;&lt;path d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(6158,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_output_format" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_output_format_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Output Format&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_output_format_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
For each query, print the value of the element at index&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="1.676ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -576.1 878.5 721.6" width="2.04ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;of the rotated array on a new line.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_sample_input" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_sample_input_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Sample Input&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_sample_input_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;pre style="background: rgb(244, 250, 255); border-radius: 2px; border: 0px; color: #454c59; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 18px; margin-bottom: 9px; margin-top: 12px; outline: 0px; padding: 20px; vertical-align: baseline; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;code style="background: transparent; border-radius: 3px; border: 0px; color: #454c5f; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;3 2 3
1 2 3
0
1
2
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_sample_output" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_sample_output_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Sample Output&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_sample_output_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;pre style="background: rgb(244, 250, 255); border-radius: 2px; border: 0px; color: #454c59; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 18px; margin-bottom: 9px; margin-top: 12px; outline: 0px; padding: 20px; vertical-align: baseline; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;code style="background: transparent; border-radius: 3px; border: 0px; color: #454c5f; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;2
3
1
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_explanation" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_explanation_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Explanation&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_explanation_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
After the first rotation, the array becomes&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.838ex;" viewbox="0 -863.1 2948.8 1223.9" width="6.849ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M118 -250V750H255V710H158V-210H255V-250H118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(278,0)"&gt;&lt;path d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(779,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1224,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1724,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2169,0)"&gt;&lt;path d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2670,0)"&gt;&lt;path d="M22 710V750H159V-250H22V-210H119V710H22Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;.&lt;br /&gt;
After the second (and final) rotation, the array becomes&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.838ex;" viewbox="0 -863.1 2948.8 1223.9" width="6.849ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M118 -250V750H255V710H158V-210H255V-250H118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(278,0)"&gt;&lt;path d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(779,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1224,0)"&gt;&lt;path d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1724,0)"&gt;&lt;path d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2169,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2670,0)"&gt;&lt;path d="M22 710V750H159V-250H22V-210H119V710H22Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
Let's refer to the array's final state as array&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-3-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 429.5 936.9" width="0.998ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;. For each query, we just have to print the value of&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-4-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.509ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -791.3 1150.7 1080.4" width="2.673ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(429,-150)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;on a new line:&lt;/div&gt;
&lt;ol style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 10px 0px 20px 20px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-5-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 2713.1 936.9" width="6.301ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(1156,0)"&gt;&lt;path d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2212,0)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, so we print&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-6-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 500.5 936.9" width="1.162ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;on a new line.&lt;/li&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-7-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 2713.1 936.9" width="6.301ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(1156,0)"&gt;&lt;path d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2212,0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, so we print&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-8-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 500.5 936.9" width="1.162ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;on a new line.&lt;/li&gt;
&lt;li style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="MathJax_SVG" id="MathJax-Element-9-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 2713.1 936.9" width="6.301ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(1156,0)"&gt;&lt;path d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2212,0)"&gt;&lt;path d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, so we print&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-10-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 500.5 936.9" width="1.162ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;on a new line.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The best solution by me:&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
#include&amp;lt;stdio.h&amp;gt; &lt;br /&gt;
#include&amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
int n; &lt;br /&gt;
int k; &lt;br /&gt;
int q; &lt;br /&gt;
scanf("%d %d %d",&amp;amp;n,&amp;amp;k,&amp;amp;q);&lt;br /&gt;
int *a = malloc(sizeof(int) * n);&lt;br /&gt;
for(int a_i = 0; a_i &amp;lt; n; a_i++){&lt;br /&gt;
scanf("%d",&amp;amp;a[a_i]);&lt;br /&gt;
}&lt;br /&gt;
for(int a0 = 0; a0 &amp;lt; q; a0++){&lt;br /&gt;
int m; &lt;br /&gt;
scanf("%d",&amp;amp;m);&lt;br /&gt;
&lt;b&gt;int index = (((m - k) %n )+ n) % n;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;printf("%d\n", a[index]);&lt;/b&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></item><item><title>Given an array of  integers, print each element in reverse order as a single line of space-separated integers</title><link>http://codesquiz.blogspot.com/2017/01/given-array-of-integers-print-each.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 3 Jan 2017 01:09:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-460666522040864680</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="challenge_problem_statement" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_problem_statement_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
An&amp;nbsp;&lt;em style="border: 0px; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;array&lt;/em&gt;&amp;nbsp;is a type of data structure that stores elements of the same type in a contiguous block of memory. In an array,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 750.5 936.9" width="1.743ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, of size&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 888.5 936.9" width="2.064ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, each memory location has some unique index,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-3-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 345.5 936.9" width="0.802ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;(where&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-4-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.343ex" role="img" style="vertical-align: -0.505ex;" viewbox="0 -791.3 4402.6 1008.6" width="10.225ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(778,0)"&gt;&lt;path d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1834,0)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(2457,0)"&gt;&lt;path d="M694 -11T694 -19T688 -33T678 -40Q671 -40 524 29T234 166L90 235Q83 240 83 250Q83 261 91 266Q664 540 678 540Q681 540 687 534T694 519T687 505Q686 504 417 376L151 250L417 124Q686 -4 687 -5Q694 -11 694 -19Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(3514,0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;), that can be referenced as&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-5-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.843ex" role="img" style="vertical-align: -0.838ex;" viewbox="0 -863.1 1653 1223.9" width="3.839ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(750,0)"&gt;&lt;path d="M118 -250V750H255V710H158V-210H255V-250H118Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1029,0)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;g transform="translate(1374,0)"&gt;&lt;path d="M22 710V750H159V-250H22V-210H119V710H22Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;(you may also see it written as&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-6-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.509ex" role="img" style="vertical-align: -0.671ex;" viewbox="0 -791.3 1094.8 1080.4" width="2.543ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;g transform="translate(750,-150)"&gt;&lt;path d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z" stroke-width="1" transform="scale(0.707)"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;).&lt;/div&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
Given an array,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-7-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 750.5 936.9" width="1.743ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;, of&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-8-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 888.5 936.9" width="2.064ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;integers, print each element in reverse order as a single line of space-separated integers.&lt;/div&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Note:&lt;/strong&gt;&amp;nbsp;If you've already solved our C++ domain's&amp;nbsp;&lt;em style="border: 0px; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Arrays Introduction&lt;/em&gt;&amp;nbsp;challenge, you may want to skip this.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_input_format" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_input_format_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Input Format&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_input_format_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
The first line contains an integer,&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 888.5 936.9" width="2.064ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;(the number of integers in&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 750.5 936.9" width="1.743ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;).&lt;br /&gt;
The second line contains&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-3-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 888.5 936.9" width="2.064ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;space-separated integers describing&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-4-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 750.5 936.9" width="1.743ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_constraints" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_constraints_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;Output Format&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_output_format" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_output_format_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; margin-top: 12px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
Print all&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-1-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 888.5 936.9" width="2.064ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M234 637Q231 637 226 637Q201 637 196 638T191 649Q191 676 202 682Q204 683 299 683Q376 683 387 683T401 677Q612 181 616 168L670 381Q723 592 723 606Q723 633 659 637Q635 637 635 648Q635 650 637 660Q641 676 643 679T653 683Q656 683 684 682T767 680Q817 680 843 681T873 682Q888 682 888 672Q888 650 880 642Q878 637 858 637Q787 633 769 597L620 7Q618 0 599 0Q585 0 582 2Q579 5 453 305L326 604L261 344Q196 88 196 79Q201 46 268 46H278Q284 41 284 38T282 19Q278 6 272 0H259Q228 2 151 2Q123 2 100 2T63 2T46 1Q31 1 31 10Q31 14 34 26T39 40Q41 46 62 46Q130 49 150 85Q154 91 221 362L289 634Q287 635 234 637Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;integers in&amp;nbsp;&lt;span class="MathJax_SVG" id="MathJax-Element-2-Frame" style="border: 0px; direction: ltr; display: inline-block; float: none; font-family: inherit; font-stretch: inherit; font-variant: inherit; line-height: normal; margin: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap; word-spacing: normal; word-wrap: normal;"&gt;&lt;svg focusable="false" height="2.176ex" role="img" style="vertical-align: -0.338ex;" viewbox="0 -791.3 750.5 936.9" width="1.743ex" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;g fill="currentColor" stroke-width="0" stroke="currentColor" transform="matrix(1 0 0 -1 0 0)"&gt;&lt;path d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z" stroke-width="1"&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&amp;nbsp;in reverse order as a single line of space-separated integers.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_sample_input" style="background-color: white; border: 0px; color: #39424e; font-family: &amp;quot;Whitney SSm A&amp;quot;, &amp;quot;Whitney SSm B&amp;quot;, Avenir, &amp;quot;Segoe UI&amp;quot;, Ubuntu, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_sample_input_title" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Sample Input&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_sample_input_body" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;pre style="background: rgb(244, 250, 255); border-radius: 2px; border: 0px; color: #454c59; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 18px; margin-bottom: 9px; margin-top: 12px; outline: 0px; padding: 20px; vertical-align: baseline; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;code style="background: transparent; border-radius: 3px; border: 0px; color: #454c5f; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;4
1 4 3 2
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="challenge_sample_output" style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;
&lt;div class="msB challenge_sample_output_title" style="border: 0px; color: #39424e; font-family: inherit; font-size: 16px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;
&lt;div style="border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.5em; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;
&lt;strong style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;Sample Output&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="msB challenge_sample_output_body" style="border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;
&lt;div class="hackdown-content" style="border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;
&lt;pre style="background: rgb(244, 250, 255); border-radius: 2px; border: 0px; color: #454c59; font-family: menlo, monaco, consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 14px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 18px; margin-bottom: 9px; margin-top: 12px; outline: 0px; padding: 20px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;code style="background: transparent; border-radius: 3px; border: 0px; color: #454c5f; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;2 3 4 1&lt;/code&gt;&lt;/pre&gt;
&lt;pre style="background: rgb(244, 250, 255); border-radius: 2px; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 18px; margin-bottom: 9px; margin-top: 12px; outline: 0px; padding: 20px; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;code style="background: transparent; border-radius: 3px; border: 0px; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="color: #454c5f; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;courier new&amp;quot; , monospace;"&gt;&lt;u&gt;Solution:&lt;/u&gt;
#include &amp;lt;math.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;assert.h&amp;gt;
#include &amp;lt;limits.h&amp;gt;
#include &amp;lt;stdbool.h&amp;gt;

int main(){
    int n; 
    scanf("%d",&amp;amp;n);
    int *arr = malloc(sizeof(int) * n);
    for(int arr_i = 0; arr_i &amp;lt; n; arr_i++){
       scanf("%d",&amp;amp;arr[arr_i]);
    }
    for (int arr_i = n - 1; arr_i &amp;gt;= 0; arr_i--)
        {
        printf("%d ", arr[arr_i]);
    }
    return 0;
}&lt;/span&gt;&lt;/code&gt;&lt;code style="background: transparent; border-radius: 3px; border: 0px; color: #454c5f; font-family: menlo, monaco, consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;"&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;div style="color: #39424e; font-family: inherit; font-size: 16px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"&gt;
&lt;code style="background: transparent; border-radius: 3px; border: 0px; color: #454c5f; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: break-word; word-wrap: break-word;"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>What is modular programming ? </title><link>http://codesquiz.blogspot.com/2013/06/what-is-modular-programming.html</link><category>C PROGRAMMING</category><category>Games</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 8 Jun 2013 23:31:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-7797886263630932590</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h2&gt;
Modular programming :&lt;/h2&gt;
&lt;div&gt;
Modular programming is the concept of dividing your whole big programs in to many small programs. Using Modular Programming your program can be divided in to different Functions, files, modules etc..&lt;br /&gt;
&lt;br /&gt;
lets see one example for a function:&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Program without modular division :&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
void main()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; int a, b, c, d, avg ;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/*Taking input from user. Four numbers*/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Enter 4 numbers :");&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d);&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/*Here we are doing calculation for our program*/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; avg1 = (a+b)/2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; avg2 = (c+d)/2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; avg3 = (b+c)/2;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/*Printing output*/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; printf("avg1 = %d", avg1);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; printf("avg2 = %d", avg2);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; printf("avg3 = %d", avg3);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now this program we can write like this also :&lt;br /&gt;
&lt;i&gt;&lt;u&gt;In &lt;b&gt;Header.c &lt;/b&gt;file&lt;/u&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;u&gt;In &lt;b&gt;Func.c&lt;/b&gt; file&lt;/u&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;#include "FILE1.c"&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;int avg(int x, int y)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;{&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return((x + y )/2);&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;}&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;u&gt;In &lt;b&gt;main.c &lt;/b&gt;file&lt;/u&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
#include &amp;nbsp;"FILE1.c"&lt;/div&gt;
&lt;div&gt;
#include &amp;nbsp;"FILE2.c"&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp;int a, b, c, d, avg1, avg2, avg3 ;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/*Taking input from user. Four numbers*/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Enter 4 numbers :");&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d);&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;i&gt;/*Here we are doing calculation for our program*/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; avg1 = avg(a,b);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; avg2 = avg(c,d);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; avg3 = avg(b,c);&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;i&gt;/*Printing output*/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; printf("avg1 = %d", avg1);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; printf("avg2 = %d", avg2);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; printf("avg3 = %d", avg3);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
NOTE: If you are working with windows then no need to go for different file. Make it in one file.&lt;/div&gt;
&lt;div&gt;
For compilation in gcc :&lt;br /&gt;
&lt;b&gt;&lt;i&gt;gcc -o exe main.c func.c -I .&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;Get more details on compilation of Gcc Click here.&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Here we have divided our one long program in to modules like functions, subroutines, files.&lt;br /&gt;
The benefit of this type of program is that :&lt;br /&gt;
1. You can use same function multiple time.&lt;/div&gt;
&lt;div&gt;
2. Debugging will be easier.&lt;/div&gt;
&lt;div&gt;
3. When going for writing new program you can use these module also, no need to write once again.&lt;/div&gt;
&lt;div&gt;
4. Good memory utilities.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Some more benefits are there..If you know some more comment below.&lt;br /&gt;
&lt;br /&gt;
If you have any doubt or need any type of C program or want to contribute...click on &lt;a href="http://www.emailmeform.com/builder/form/V5b2x6Rb3JucdDbNn"&gt;Submit program&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><enclosure length="0" type="http://codesquiz.blogspot.com/" url="http://codesquiz.blogspot.com/"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><itunes:explicit/><itunes:subtitle>Modular programming : Modular programming is the concept of dividing your whole big programs in to many small programs. Using Modular Programming your program can be divided in to different Functions, files, modules etc.. lets see one example for a function: Program without modular division : #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;conio.h&amp;gt; void main() { &amp;nbsp; &amp;nbsp; &amp;nbsp; int a, b, c, d, avg ;&amp;nbsp; /*Taking input from user. Four numbers*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Enter 4 numbers :"); &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d); /*Here we are doing calculation for our program*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; avg1 = (a+b)/2; &amp;nbsp; &amp;nbsp; &amp;nbsp; avg2 = (c+d)/2; &amp;nbsp; &amp;nbsp; &amp;nbsp; avg3 = (b+c)/2; /*Printing output*/ &amp;nbsp; &amp;nbsp; printf("avg1 = %d", avg1); &amp;nbsp; &amp;nbsp; printf("avg2 = %d", avg2); &amp;nbsp; &amp;nbsp; printf("avg3 = %d", avg3); } Now this program we can write like this also : In Header.c file #include &amp;lt;stdio.h&amp;gt; In Func.c file #include "FILE1.c" int avg(int x, int y) { &amp;nbsp; &amp;nbsp; &amp;nbsp; return((x + y )/2); } In main.c file #include &amp;nbsp;"FILE1.c" #include &amp;nbsp;"FILE2.c" &amp;nbsp;int a, b, c, d, avg1, avg2, avg3 ;&amp;nbsp; /*Taking input from user. Four numbers*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Enter 4 numbers :"); &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d); /*Here we are doing calculation for our program*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; avg1 = avg(a,b); &amp;nbsp; &amp;nbsp; &amp;nbsp; avg2 = avg(c,d); &amp;nbsp; &amp;nbsp; &amp;nbsp; avg3 = avg(b,c); /*Printing output*/ &amp;nbsp; &amp;nbsp; printf("avg1 = %d", avg1); &amp;nbsp; &amp;nbsp; printf("avg2 = %d", avg2); &amp;nbsp; &amp;nbsp; printf("avg3 = %d", avg3); } NOTE: If you are working with windows then no need to go for different file. Make it in one file. For compilation in gcc : gcc -o exe main.c func.c -I . Get more details on compilation of Gcc Click here. Here we have divided our one long program in to modules like functions, subroutines, files. The benefit of this type of program is that : 1. You can use same function multiple time. 2. Debugging will be easier. 3. When going for writing new program you can use these module also, no need to write once again. 4. Good memory utilities. Some more benefits are there..If you know some more comment below. If you have any doubt or need any type of C program or want to contribute...click on Submit program THANK YOU! VISIT AGAIN</itunes:subtitle><itunes:author>noreply@blogger.com (Anonymous)</itunes:author><itunes:summary>Modular programming : Modular programming is the concept of dividing your whole big programs in to many small programs. Using Modular Programming your program can be divided in to different Functions, files, modules etc.. lets see one example for a function: Program without modular division : #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;conio.h&amp;gt; void main() { &amp;nbsp; &amp;nbsp; &amp;nbsp; int a, b, c, d, avg ;&amp;nbsp; /*Taking input from user. Four numbers*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Enter 4 numbers :"); &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d); /*Here we are doing calculation for our program*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; avg1 = (a+b)/2; &amp;nbsp; &amp;nbsp; &amp;nbsp; avg2 = (c+d)/2; &amp;nbsp; &amp;nbsp; &amp;nbsp; avg3 = (b+c)/2; /*Printing output*/ &amp;nbsp; &amp;nbsp; printf("avg1 = %d", avg1); &amp;nbsp; &amp;nbsp; printf("avg2 = %d", avg2); &amp;nbsp; &amp;nbsp; printf("avg3 = %d", avg3); } Now this program we can write like this also : In Header.c file #include &amp;lt;stdio.h&amp;gt; In Func.c file #include "FILE1.c" int avg(int x, int y) { &amp;nbsp; &amp;nbsp; &amp;nbsp; return((x + y )/2); } In main.c file #include &amp;nbsp;"FILE1.c" #include &amp;nbsp;"FILE2.c" &amp;nbsp;int a, b, c, d, avg1, avg2, avg3 ;&amp;nbsp; /*Taking input from user. Four numbers*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Enter 4 numbers :"); &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf("%d%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c, &amp;amp;d); /*Here we are doing calculation for our program*/ &amp;nbsp; &amp;nbsp; &amp;nbsp; avg1 = avg(a,b); &amp;nbsp; &amp;nbsp; &amp;nbsp; avg2 = avg(c,d); &amp;nbsp; &amp;nbsp; &amp;nbsp; avg3 = avg(b,c); /*Printing output*/ &amp;nbsp; &amp;nbsp; printf("avg1 = %d", avg1); &amp;nbsp; &amp;nbsp; printf("avg2 = %d", avg2); &amp;nbsp; &amp;nbsp; printf("avg3 = %d", avg3); } NOTE: If you are working with windows then no need to go for different file. Make it in one file. For compilation in gcc : gcc -o exe main.c func.c -I . Get more details on compilation of Gcc Click here. Here we have divided our one long program in to modules like functions, subroutines, files. The benefit of this type of program is that : 1. You can use same function multiple time. 2. Debugging will be easier. 3. When going for writing new program you can use these module also, no need to write once again. 4. Good memory utilities. Some more benefits are there..If you know some more comment below. If you have any doubt or need any type of C program or want to contribute...click on Submit program THANK YOU! VISIT AGAIN</itunes:summary><itunes:keywords>C PROGRAMMING, Games</itunes:keywords></item><item><title>Implement isalpha</title><link>http://codesquiz.blogspot.com/2012/12/implement-isalpha.html</link><category>C PROGRAMMING</category><category>Games</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:56:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-4402547930598437684</guid><description>/*This function will chechk whether the input is an alphabate character or not.*/&lt;br /&gt;
int myisalpha(int x)&lt;br /&gt;
{&lt;br /&gt;
 if((x &gt;= 65 &amp;&amp; x &lt;=90) || (x &gt;= 97 &amp;&amp; x &lt;= 122))&lt;br /&gt;
  return 1;&lt;br /&gt;
 else&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strstr</title><link>http://codesquiz.blogspot.com/2012/12/implement-strstr.html</link><category>C PROGRAMMING</category><category>Games</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:46:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-8167145158424013563</guid><description>&lt;br /&gt;
/*This program will find the substring s2 from the string s1 &lt;br /&gt;
 * and if found the it reutrns the base  address of the substring &lt;br /&gt;
 * if not found it send zero as a character pointer. &lt;br /&gt;
 * */&lt;br /&gt;
char *mystrstr(const char *string, const char *needle)&lt;br /&gt;
{&lt;br /&gt;
	const char *s1;//For retaing address of second sring for checking&lt;br /&gt;
	const char *tar; //For retaing address of first string&lt;br /&gt;
	/*Loop untill end*/&lt;br /&gt;
	for(; *string != '\0'; string++){&lt;br /&gt;
		for(s1 = string, tar = needle; *tar != '\0'; s1++, tar++){&lt;br /&gt;
			if(*s1 != *tar)&lt;br /&gt;
				break;&lt;br /&gt;
		}&lt;br /&gt;
		if(*tar == '\0')&lt;br /&gt;
			return (char *)s1;&lt;br /&gt;
	}	      &lt;br /&gt;
	return NULL;&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strcasecmp</title><link>http://codesquiz.blogspot.com/2012/12/implement-strcasecmp.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:45:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-5586782644260363709</guid><description>/*This function will comapre two string without cases and returns 0 if they are same or the difference of the ascii value if they are difference*/&lt;br /&gt;
int mystrcasecmp(const char *s1, const char *s2)&lt;br /&gt;
{&lt;br /&gt;
	while(*s1!='\0' &amp;&amp; *s2!='\0'){&lt;br /&gt;
		if(toupper(*s1) &amp;&amp; toupper(*s2)){&lt;br /&gt;
				s1++;&lt;br /&gt;
				s2++;&lt;br /&gt;
			}&lt;br /&gt;
		else&lt;br /&gt;
			return(*s1-*s2);&lt;br /&gt;
	}&lt;br /&gt;
	return (*s1 - *s2);&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Inplement strtok</title><link>http://codesquiz.blogspot.com/2012/12/inplement-strtok.html</link><category>C PROGRAMMING</category><category>Games</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:44:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-4254136089509789943</guid><description>/*It will tokenize the source string "src" from the place where any of the charcter of the &lt;br /&gt;
 * target string "tar" will be found. It returns the stating address the token string and &lt;br /&gt;
 * it should catch by a char pointer&lt;br /&gt;
 * */&lt;br /&gt;
&lt;br /&gt;
char *mystrtok(char *str, const char *tar)&lt;br /&gt;
{&lt;br /&gt;
	static int i;			/*For looping*/&lt;br /&gt;
	static int len1;		/*Holds the length of source string*/&lt;br /&gt;
	static int len2;		/*Holds the length of delimiter string*/&lt;br /&gt;
	static char *s;			/*This variable will holds the address of source string*/&lt;br /&gt;
	int j ;				/*For looping*/&lt;br /&gt;
	int ptr = 0 ;			/*Using for recognizing consecutive delimeter found*/&lt;br /&gt;
	char *token; 			/*Variable for storing the token*/&lt;br /&gt;
	token=(char *)malloc(25*sizeof(char)); /*Creating memory for token*/&lt;br /&gt;
	if(token == NULL) {&lt;br /&gt;
		printf("Out of memory space!");&lt;br /&gt;
		exit(0);&lt;br /&gt;
	}&lt;br /&gt;
	 /* Defining constraints for first time only*/&lt;br /&gt;
	if(str != '\0') {&lt;br /&gt;
		i = 0;&lt;br /&gt;
		s = str;&lt;br /&gt;
		len1 = strlen(str);&lt;br /&gt;
		len2 = strlen(tar);&lt;br /&gt;
	}&lt;br /&gt;
	i++;&lt;br /&gt;
	token=(s + i - 1);&lt;br /&gt;
	/*tokenizing untill last*/&lt;br /&gt;
	while(i &lt;= len1+1){&lt;br /&gt;
		ptr++;&lt;br /&gt;
		for(j = 0 ; j &lt;= len2 ; j++){&lt;br /&gt;
			if(*(s + i - 1) == *(tar + j)){&lt;br /&gt;
				*(token + ptr - 1) = '\0';&lt;br /&gt;
				if(*token == '\0'){&lt;br /&gt;
					token++;&lt;br /&gt;
					ptr = 0;&lt;br /&gt;
					break;&lt;br /&gt;
				}&lt;br /&gt;
				else&lt;br /&gt;
					return token;&lt;br /&gt;
			}&lt;br /&gt;
			if(ptr == 0)&lt;br /&gt;
				continue;&lt;br /&gt;
		}&lt;br /&gt;
		i++;&lt;br /&gt;
	}&lt;br /&gt;
	return '\0';&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement Strcspn</title><link>http://codesquiz.blogspot.com/2012/12/implement-strcspn.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:43:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-3423818062825467495</guid><description>/*&lt;br /&gt;
 * This program will check the first unmatched characters of &lt;br /&gt;
 * target string 'tar' to the source string 'src' &lt;br /&gt;
 * and returns the total number of first unmatched characters.&lt;br /&gt;
 * */&lt;br /&gt;
int mystrcspn(char *src, char *tar)&lt;br /&gt;
{&lt;br /&gt;
 char *t;  /*For retaing the address of tar string*/&lt;br /&gt;
 int count = 0; /*For counting */&lt;br /&gt;
 for(;*src != '\0'; src++) {&lt;br /&gt;
  &lt;br /&gt;
  for(t = tar; *t != '\0'; t++) {&lt;br /&gt;
   if( *src == *t )&lt;br /&gt;
    return (count);&lt;br /&gt;
  }&lt;br /&gt;
  if(*t == '\0')&lt;br /&gt;
   count++;&lt;br /&gt;
 }&lt;br /&gt;
 return (count);&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strspn</title><link>http://codesquiz.blogspot.com/2012/12/implement-strspn.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:43:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-4839926208159365804</guid><description>*&lt;br /&gt;
 * This program will Count the first matched character &lt;br /&gt;
 * from target string "tar" to the source string "src" &lt;br /&gt;
 * and returns the value of count.&lt;br /&gt;
 * */&lt;br /&gt;
int mystrspn(const char *src, const char *tar)&lt;br /&gt;
{&lt;br /&gt;
 const char *t = NULL;/*For retaing the address of target string*/ &lt;br /&gt;
 int count = 0; /*For counting*/&lt;br /&gt;
 for(;*src != '\0'; src++){&lt;br /&gt;
  for(t = tar; *t != '\0'; t++)&lt;br /&gt;
   if(*src == *t){&lt;br /&gt;
    count++;&lt;br /&gt;
    break;&lt;br /&gt;
   }&lt;br /&gt;
  if(*t == '\0')&lt;br /&gt;
   return(count);&lt;br /&gt;
 }&lt;br /&gt;
 return(count);&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strrchr</title><link>http://codesquiz.blogspot.com/2012/12/implement-strrchr.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:41:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-3997813730953320967</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
/*&lt;br /&gt;
* This program will search for the occurance of a character&lt;br /&gt;
* from the last of the string.&lt;br /&gt;
* If found it will return the address of last occurance of that character&lt;br /&gt;
* */&lt;br /&gt;
char *mystrrchr(const char *s1, int x)&lt;br /&gt;
{&lt;br /&gt;
const char *p = NULL; /*For copying the address of the string for check*/&lt;br /&gt;
while(*s1 != '\0'){&lt;br /&gt;
if(*s1 == x)&lt;br /&gt;
p = s1;&lt;br /&gt;
s1++;&lt;br /&gt;
}&lt;br /&gt;
return(char *)p;&lt;br /&gt;
}&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strncmp</title><link>http://codesquiz.blogspot.com/2012/12/implement-strncmp.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:39:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-6471243321302527793</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
/*This program will compare the n-bit of a string s1 with s2. If both string are same up to n-bits it will return Zero else it will returns the difference  of the ascii value of 1st unmatched character.*/&lt;br /&gt;
&lt;br /&gt;
int mystrncmp(const char *s1, const char *s2, int n)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
while(s1 != '\0' &amp;amp;&amp;amp; (*s1++ == *s2++) &amp;amp;&amp;amp; --n &amp;gt; 1)&lt;br /&gt;
&lt;br /&gt;
;&lt;br /&gt;
&lt;br /&gt;
return (*s1 - *s2);&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strncat</title><link>http://codesquiz.blogspot.com/2012/12/implement-strncat.html</link><category>C PROGRAMMING</category><category>Games</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:38:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-2312093604634279557</guid><description>/*This function will append "n" character of source string "src" into target string "tar" &amp; return Zero. */&lt;br /&gt;
&lt;br /&gt;
char *mystrncat(char *tar, const char *src, int n)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
 char *t;/*retaing the address of target string*/&lt;br /&gt;
&lt;br /&gt;
 t = tar ;&lt;br /&gt;
&lt;br /&gt;
 while (*tar != '\0')&lt;br /&gt;
&lt;br /&gt;
  tar++;&lt;br /&gt;
&lt;br /&gt;
 /*Copying from src to tar string*/&lt;br /&gt;
&lt;br /&gt;
 while (*src != '\0' &amp;&amp; (*tar++ = *src++) &amp;&amp; (--n &gt; 1));&lt;br /&gt;
&lt;br /&gt;
 *tar = '\0';&lt;br /&gt;
&lt;br /&gt;
 return t;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Implement strncpy</title><link>http://codesquiz.blogspot.com/2012/12/implement-strncpy.html</link><category>C PROGRAMMING</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Dec 2012 09:37:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-927889112314646161</guid><description>&lt;br /&gt;
/*This function will copy "n" character of the source string "src" to the target string "tar" and return Zero.*/&lt;br /&gt;
&lt;br /&gt;
char *mystrncpy(char *tar, const char *src, int n)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
 char *t = tar; /*for Retaing the address tar string*/&lt;br /&gt;
&lt;br /&gt;
 /*Copying string*/&lt;br /&gt;
&lt;br /&gt;
 while(*src != '\0' &amp;&amp; (*tar++ = *src++) &amp;&amp; n--);&lt;br /&gt;
&lt;br /&gt;
 *tar = '\0';&lt;br /&gt;
&lt;br /&gt;
 return t;&lt;br /&gt;
&lt;br /&gt;
}&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Daily quiz no.- 04</title><link>http://codesquiz.blogspot.com/2012/11/daily-quiz-no-04.html</link><category>Daily quiz</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 3 Nov 2012 04:55:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-145625377494666052</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
Daily quiz no.- 04&lt;br /&gt;
&lt;br /&gt;
Answer it!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9j3p07yFfB9wGxNrKwTaLxzTj1yHcBQyvfyLDV3ECrBRPgzzP9HeAOJiZ89uDwOLB8vSHHcmv3iwLuLPoX_1qthnAPjHXYx0GWFdZdfjNv0qFAfAyOhVMN1CZvf3O6kCEMxGHSbLOFJ4/s1600/127012.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="338" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9j3p07yFfB9wGxNrKwTaLxzTj1yHcBQyvfyLDV3ECrBRPgzzP9HeAOJiZ89uDwOLB8vSHHcmv3iwLuLPoX_1qthnAPjHXYx0GWFdZdfjNv0qFAfAyOhVMN1CZvf3O6kCEMxGHSbLOFJ4/s400/127012.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Comment your answer without watching others comments first! You may explain your answer&lt;br /&gt;
Share it with your friend to see what's there answer!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9j3p07yFfB9wGxNrKwTaLxzTj1yHcBQyvfyLDV3ECrBRPgzzP9HeAOJiZ89uDwOLB8vSHHcmv3iwLuLPoX_1qthnAPjHXYx0GWFdZdfjNv0qFAfAyOhVMN1CZvf3O6kCEMxGHSbLOFJ4/s72-c/127012.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Daily quiz no.- 03</title><link>http://codesquiz.blogspot.com/2012/11/daily-quiz-no-03.html</link><category>Daily quiz</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 2 Nov 2012 04:50:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-6900287072024936381</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;Daily quiz no.- 03&lt;/h2&gt;How many triangles are there??&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV_WaxXLdfm2d8C9rb5d0tZdH4L7kPvwkwoqvqQ4RRZkXizSzOV-vfUqyz2RcWlo5YSRHMgM97MPfxPwJetNZP0tlQfphoLLViSy1TM7KiqyWmgOv8QLsuG7l2KDvel36p9u8tOdnzv8g/s1600/triangle.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="180" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV_WaxXLdfm2d8C9rb5d0tZdH4L7kPvwkwoqvqQ4RRZkXizSzOV-vfUqyz2RcWlo5YSRHMgM97MPfxPwJetNZP0tlQfphoLLViSy1TM7KiqyWmgOv8QLsuG7l2KDvel36p9u8tOdnzv8g/s320/triangle.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Comment your answer without watching others comments first! You may explain your answer&lt;br /&gt;
Share it with your friend to see what's there answer!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV_WaxXLdfm2d8C9rb5d0tZdH4L7kPvwkwoqvqQ4RRZkXizSzOV-vfUqyz2RcWlo5YSRHMgM97MPfxPwJetNZP0tlQfphoLLViSy1TM7KiqyWmgOv8QLsuG7l2KDvel36p9u8tOdnzv8g/s72-c/triangle.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Daily quiz no.- 02</title><link>http://codesquiz.blogspot.com/2012/11/daily-quiz-no-02.html</link><category>Daily quiz</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 1 Nov 2012 10:00:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-267323161902985811</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Daily quiz no.- 02&lt;br /&gt;
&lt;br /&gt;
How many squares are in this pic??&lt;br /&gt;
What would be the result??&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN5xxNUAD0gY1kHyfoknYyHHoMZfaxHLe0UqDhxluRqe9ZPEo4F0EIxRhmvHSq5N5o3CtpqbHCxEfmZFlYYTg3eJoiWOP_QKInJtWeTcH83Q-y_brJa4Zkw3rwAlra3OeNIIJGW-JnSmU/s1600/Square.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN5xxNUAD0gY1kHyfoknYyHHoMZfaxHLe0UqDhxluRqe9ZPEo4F0EIxRhmvHSq5N5o3CtpqbHCxEfmZFlYYTg3eJoiWOP_QKInJtWeTcH83Q-y_brJa4Zkw3rwAlra3OeNIIJGW-JnSmU/s320/Square.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Comment your answer without watching others comments first! You may explain your answer&lt;br /&gt;
Share it with your friend to see what's there answer!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN5xxNUAD0gY1kHyfoknYyHHoMZfaxHLe0UqDhxluRqe9ZPEo4F0EIxRhmvHSq5N5o3CtpqbHCxEfmZFlYYTg3eJoiWOP_QKInJtWeTcH83Q-y_brJa4Zkw3rwAlra3OeNIIJGW-JnSmU/s72-c/Square.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C programming Quiz 31-35</title><link>http://codesquiz.blogspot.com/2012/10/c-programming-quiz-31-35.html</link><category>C PROGRAMMING</category><category>QUIZ</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 31 Oct 2012 04:30:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-1239066208402760328</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;C programming Quiz 31-35&lt;/h2&gt;&lt;br /&gt;
&lt;b&gt;Quiz 31:&lt;/b&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
static int x=190;&lt;br /&gt;
static int y=x;&lt;br /&gt;
if(x==y)&lt;br /&gt;
printf("equal");&lt;br /&gt;
else&lt;br /&gt;
printf("unequal");&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz1(){alert("Ans: error..\nIinitializer element is not constant....static int y=x; this statement will give error....");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz1()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 32:&lt;/b&gt; &lt;br /&gt;
int increment(int i)&lt;br /&gt;
{&lt;br /&gt;
i++;&lt;br /&gt;
return i;&lt;br /&gt;
}&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int i;&lt;br /&gt;
for(i=0;i&lt;10;increment(i))
printf("%d",i);
getch();
}
&lt;head&gt;&lt;script&gt;function Quiz2(){alert("Ans: 00000... Infinite loop");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz2()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &lt;b&gt;Quiz 33:&lt;/b&gt;&lt;br /&gt;
What are the total number of keywords in C?&lt;br /&gt;
&lt;br /&gt;
30&lt;br /&gt;
33&lt;br /&gt;
32&lt;br /&gt;
35&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz3(){alert("Ans: 32 ");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz3()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 34:&lt;/b&gt;&lt;br /&gt;
What is the output of following program? Assume that stack grows towards lower addresses. Also assume that variables are pushed on to the stack in the order in which they are declared.&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int x, y;&lt;br /&gt;
int *p1 = &amp;x;&lt;br /&gt;
int *p2 = &amp;y;&lt;br /&gt;
printf("%d\n", p1-p2);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz4(){alert("Ans: 4\n because stack growing downward.for ex consider x is stored in address 1004 means y is stored in 1000 so 1004-1000=4 ");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz4()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 35:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int x = 10;&lt;br /&gt;
int y = 20;&lt;br /&gt;
if (x &lt;= y == 1)
{
++x;
}
printf("%d\n", x);
}
&lt;head&gt;&lt;script&gt;function Quiz5(){alert("Ans: 11\n&lt;= is having first priority left-&gt;right so it will be evaluated first and the result will be 1 and then 1==1 will result in 1...so the control will enter the if loop and x will become 11. ");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz5()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
In case of any explanation kindly comment!   DON'T&amp;nbsp;FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND! &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Daily quiz no.- 01</title><link>http://codesquiz.blogspot.com/2012/10/daily-quiz-no-01.html</link><category>Daily quiz</category><category>Series</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 31 Oct 2012 03:07:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-8752943301754973056</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Daily quiz no-01&lt;br /&gt;
&lt;br /&gt;
What would be the result??&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOhiogPLiwivuYyXmStxjLfeeQoAVNxE02blkE1xfqwqmFbNI7-PVeHHKZR39GkmYU_CCIIpNYKrDvhe0Jqz8lPp9Wim1d94d2GQDYRFo3uFBlgCcyRTuR0ikDnh59MTseNQOorgDNqMo/s1600/530966_246789925446992_1797633842_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="137" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOhiogPLiwivuYyXmStxjLfeeQoAVNxE02blkE1xfqwqmFbNI7-PVeHHKZR39GkmYU_CCIIpNYKrDvhe0Jqz8lPp9Wim1d94d2GQDYRFo3uFBlgCcyRTuR0ikDnh59MTseNQOorgDNqMo/s640/530966_246789925446992_1797633842_n.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Comment your answer without watching others comments first! You may explain your answer&lt;br /&gt;
Share it with your friend to see what's there answer!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOhiogPLiwivuYyXmStxjLfeeQoAVNxE02blkE1xfqwqmFbNI7-PVeHHKZR39GkmYU_CCIIpNYKrDvhe0Jqz8lPp9Wim1d94d2GQDYRFo3uFBlgCcyRTuR0ikDnh59MTseNQOorgDNqMo/s72-c/530966_246789925446992_1797633842_n.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C programming Quiz 26-30</title><link>http://codesquiz.blogspot.com/2012/10/c-programming-quiz-26-30_28.html</link><category>C PROGRAMMING</category><category>QUIZ</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 28 Oct 2012 02:28:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-3430516713579175351</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;C programming Quiz 5-10&lt;/h2&gt;&lt;b&gt;Quiz 26:&lt;/b&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
static char s[]="Hai Do It";&lt;br /&gt;
int i=0;&lt;br /&gt;
char ch;&lt;br /&gt;
ch=s[++i];&lt;br /&gt;
printf("%c\n",ch);&lt;br /&gt;
ch=s[i++];&lt;br /&gt;
printf("%c\n",ch);&lt;br /&gt;
ch=i++[s];&lt;br /&gt;
printf("%c\n",ch);&lt;br /&gt;
ch=++i[s];&lt;br /&gt;
printf("%c\n",ch);&lt;br /&gt;
}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz1(){alert("Ans: a a i ! \n coz ch = s[1] , so it will print 'a' . then on next step ch = s[1] then i is incremented to 2 internally , so it will print again 'a' . then ch = s[2] then i will incremented to 3 internally .so it will print ' i ' .. at last ' i ' is pointing to space whose ascii value is 32 ..then i is incremented by 1 i.e - 33..so on next print it will print the character corresponding that ascii value i.e - ' ! '");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz1()" type="button" value="Answer" /&gt;&lt;/body&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 27:&lt;/b&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int c=5;&lt;br /&gt;
printf("%d",main||c);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz2(){alert("Ans: 1 \nbcoz main() has some address. in printf u have given the function name which will give the fun address that is ORed with 5 result is 1. so 1 will get printed.");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz2()" type="button" value="Answer" /&gt;&lt;/body&gt;  &lt;br /&gt;
&lt;b&gt;Quiz 28:&lt;/b&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
printf("%d, %d", sizeof("c"), sizeof(100));&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz3(){alert("Ans: 2, 2");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz3()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;b&gt;Quiz 29:&lt;/b&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int i = 6;&lt;br /&gt;
if( ((++i &amp;lt; 7) &amp;amp;&amp;amp; ( i++/6)) || (++i &amp;lt;= 9))  &lt;br /&gt;
; &lt;br /&gt;
printf("%d\n",i); &lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt; &lt;head&gt;&lt;script&gt;function Quiz4(){alert("Ans: 8\n++i will change the value to 7 now 7&lt;7 is 0 as after dat &amp;&amp; operator is used so it will not evaluate (i++/6) after dat... again coz of ++i i value will bcome 8... As there is ; after if so it is dummy if statement... control will go inside if block but there is nothing in the block.... printf is outside the if block... it will print 8");} &lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;input onclick="Quiz4()" type="button" value="Answer" /&gt;&lt;/body&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Quiz 30:&lt;/b&gt;
&lt;br/&gt;&amp;nbsp;int main()
&lt;br/&gt;{
&lt;br/&gt;&amp;nbsp;int cnt = 5, a;
&lt;br/&gt;do
&lt;br/&gt;{
&lt;br/&gt;&amp;nbsp;a /= cnt;
&lt;br/&gt;&amp;nbsp;&lt;br/&gt;}
&lt;br/&gt;&amp;nbsp;while (cnt --);
&lt;br/&gt;&amp;nbsp;printf ("%d\n", a);
&lt;br/&gt;&amp;nbsp;return 0;
&lt;br/&gt;&amp;nbsp;}&lt;head&gt;&lt;script&gt;function Quiz5(){alert("Ans: ERROR!!");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz5()" type="button" value="Answer" /&gt;&lt;/body&gt;  &lt;br /&gt;
&lt;br /&gt;
In case of any explanation kindly comment!   DON'T&amp;nbsp;FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C programming Quiz 21-25</title><link>http://codesquiz.blogspot.com/2012/10/c-programming-quiz-21-25.html</link><category>C PROGRAMMING</category><category>QUIZ</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 24 Oct 2012 12:55:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-5365477012324992630</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;C programming Quiz 21-25&lt;/h2&gt;&lt;b&gt;Quiz 21:&lt;/b&gt;&lt;br /&gt;
int a=1;&lt;br /&gt;
printf("%d %d %d", a, ++a, a++);&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz1(){alert("Ans: 3 3 1 \n Due to stack push &amp; pop of a");} &lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz1()" type="button" value="Answer" /&gt;&lt;/body&gt;  &lt;br /&gt;
&lt;b&gt;Quiz 22:&lt;/b&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
for(putchar('M');putchar('I');putchar('U'))&lt;br /&gt;
{&lt;br /&gt;
putchar('L');&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz2(){alert("Ans:  MILUILUILU......... infinite loop");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz2()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;b&gt;Quiz 23:&lt;/b&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
printf("%d",'+'-'+'-'/'/'/'*'*'/'*');&lt;br /&gt;
}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz3(){alert("Ans:  '+' - '+' - '/' / '/ ' * '*' / '*' = (43-43-47/47*42/42)=-1\n\nAscii code of + is 43");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz3()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;b&gt;&lt;br /&gt;
Quiz 24:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
int i;&lt;br /&gt;
for(i = 0; i &amp;lt; 100; i++); { i++ printf("%d", i); } &lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz4(){alert("Ans:   100");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz4()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;b&gt;Quiz 25:&lt;/b&gt;    &lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int num=5;&lt;br /&gt;
switch(num)&lt;br /&gt;
{&lt;br /&gt;
default:printf("FACEBOOK\n");&lt;br /&gt;
case 1:printf("GOOGLE\n");break;&lt;br /&gt;
case 2:printf("GMAIL\n");break;&lt;br /&gt;
case 3:printf("ANDROID\n");break;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz5(){alert("Ans: FACEBOOK\nGOOGLE");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz5()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
In case of any explanation kindly comment!   DON'T&amp;nbsp;FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND!&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C programming Quiz 16-20</title><link>http://codesquiz.blogspot.com/2012/10/c-programming-quiz-16-20_24.html</link><category>C PROGRAMMING</category><category>QUIZ</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 24 Oct 2012 12:13:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-6289602097460331285</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;C programming Quiz 16-20&lt;/h2&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Quiz 16:&lt;/b&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
float a = 0.7;&lt;br /&gt;
if (a &amp;lt; 0.7) printf ("C"); else printf("C++"); }  &lt;head&gt;&lt;script&gt;function Quiz1(){alert("Ans: C\n As in double .7 would be stored as .69999");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz1()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 17:&lt;/b&gt;  &lt;br /&gt;
main() &lt;br /&gt;
{ &lt;br /&gt;
char near * near *ptr1; &lt;br /&gt;
char near * far *ptr2; &lt;br /&gt;
char near * huge *ptr3; &lt;br /&gt;
printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3)); &lt;br /&gt;
} &lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz2(){alert("Ans: 2 4 4");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz2()" type="button" value="Answer" /&gt;&lt;/body&gt; &lt;br /&gt;
&lt;b&gt;Quiz 18:&lt;/b&gt; &lt;br /&gt;
main( ) { &lt;br /&gt;
int z = 4; &lt;br /&gt;
printf( “%d”, printf(“ %d %d “, z, z)); }   &lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz3(){alert("Ans: 4 4 5");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz3()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;b&gt;Quiz 9:&lt;/b&gt; &lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int x,a=2;&lt;br /&gt;
x=++a,++a,a++;&lt;br /&gt;
printf("%d %d",x,a);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz4(){alert("Ans: 3 5");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz4()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;b&gt;Quiz 20:&lt;/b&gt;   &lt;br /&gt;
program1::&lt;br /&gt;
main()&lt;br /&gt;
{int i=4,x;&lt;br /&gt;
x=++i + ++i + ++i;&lt;br /&gt;
printf("%d",x);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
program2::&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int i=4;&lt;br /&gt;
printf("%d",++i + ++i + ++i);&lt;br /&gt;
} &lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz5(){alert("Ans: Program 1: 21\nProgram 2: 18\nDue to sequence Point ");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz5()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
In case of any explanation kindly comment!&lt;br /&gt;
&lt;br /&gt;
DON'T&amp;nbsp;FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND!&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C programming Quiz 10-15</title><link>http://codesquiz.blogspot.com/2012/10/c-programming-quiz-10-15.html</link><category>C PROGRAMMING</category><category>QUIZ</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 19 Oct 2012 00:31:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-2094696313647774500.post-2122378551769107988</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h2&gt;
C programming Quiz 10-15&lt;/h2&gt;
&lt;a href="http://www.freedownloadzone.in/2012/10/c-programming-quiz-5-10.html"&gt;&amp;lt;--Previous&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page number: &lt;a href="http://www.freedownloadzone.in/2012/10/c-programming-quiz.html" target="_blank"&gt;1&lt;/a&gt;,&lt;a href="http://www.freedownloadzone.in/2012/10/c-programming-quiz-5-10.html" target="_blank"&gt;2&lt;/a&gt;,3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next--&amp;gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Quiz 10:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;stdio .h=".h"&gt;&lt;/stdio&gt;&lt;br /&gt;
&lt;h5 class="uiStreamMessage userContentWrapper" data-ft="{&amp;quot;type&amp;quot;:1,&amp;quot;tn&amp;quot;:&amp;quot;K&amp;quot;}" style="background-color: white; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; font-weight: normal; line-height: 14px; margin: 0px 0px 5px; padding: 0px; word-break: break-word; word-wrap: break-word;"&gt;
&lt;span class="messageBody" data-ft="{&amp;quot;type&amp;quot;:3}" style="color: #333333; font-size: 13px; line-height: 1.38;"&gt;&lt;span class="userContent"&gt;&lt;div class="text_exposed_root text_exposed" id="id_507ec5330a6b79417298693" style="display: inline;"&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int j,ans;&lt;br /&gt;
j = 4;&lt;br /&gt;
&lt;div class="text_exposed_show" style="display: inline;"&gt;
ans = count(4);&lt;br /&gt;
printf("ans=%d\n",ans);&lt;br /&gt;
}&lt;br /&gt;
int count(int i)&lt;br /&gt;
{&lt;br /&gt;
if ( i &amp;lt; 0) return(i);&lt;br /&gt;
else&lt;br /&gt;
return( count(i-2) + count(i-1));&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/h5&gt;
&lt;form action="https://www.facebook.com/ajax/ufi/modify.php" class="live_521288851232220_316526391751760 commentable_item autoexpand_mode" data-live="{&amp;quot;seq&amp;quot;:521477471213358}" id="uk2tpuw32" method="post" rel="async" style="background-color: white; color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 14px; margin: 0px; padding: 0px;"&gt;
&lt;/form&gt;
&lt;head&gt;&lt;script&gt;function Quiz1(){alert("Ans: ans=-18");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz1()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 11:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
‎‎#include&lt;stdio .h=".h"&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int a=3, b = 5;&lt;br /&gt;
printf(&amp;amp;a["hi!Hello! how is this? %s\n"], &amp;amp;b["junk/super"]);&lt;br /&gt;
printf(&amp;amp;a["WHAT%c%c%c %c%c %c !\n"], 1["this"],2["beauty"],0["tool"],0["is"],3["sensitive"],4["CCCCCC"]);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;head&gt;&lt;script&gt;function Quiz2(){alert("Ans: Hello! how is this? super\nThat is C !");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz2()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 13:&lt;/b&gt;&lt;br /&gt;
int main(){&lt;br /&gt;
int num,a=15;&lt;br /&gt;
num=- - - -a--;&lt;br /&gt;
printf("%d  , %d",num,a);&lt;br /&gt;
return 0;}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz3(){alert("Ans:15 ,  14");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz3()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 14:&lt;/b&gt;&lt;br /&gt;
int main(){&lt;br /&gt;
int x,i=2;&lt;br /&gt;
x=~-!++i;&lt;br /&gt;
printf("%d",x);&lt;br /&gt;
return 0;}&lt;br /&gt;
&lt;head&gt;&lt;script&gt;function Quiz4(){alert("-1");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz4()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quiz 15:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
char a =0xAA ;&lt;br /&gt;
int b ;&lt;br /&gt;
b = (int) a ;&lt;br /&gt;
b = b &amp;gt;&amp;gt; 4 ;&lt;br /&gt;
printf("%x",b);&lt;br /&gt;
}&lt;head&gt;&lt;script&gt;function Quiz5(){alert("Ans: fffffffa 1111111111111111111111111010 \n Output based on GCC");}&lt;/script&gt;&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;input onclick="Quiz5()" type="button" value="Answer" /&gt;&lt;/body&gt;&lt;br /&gt;
&lt;a href="http://www.freedownloadzone.in/2012/10/c-programming-quiz-5-10.html"&gt;&amp;lt;--Previous&amp;nbsp;&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Page number:&amp;nbsp;&lt;a href="http://www.freedownloadzone.in/2012/10/c-programming-quiz.html" target="_blank"&gt;1&lt;/a&gt;,&lt;a href="http://www.freedownloadzone.in/2012/10/c-programming-quiz-5-10.html" target="_blank"&gt;2&lt;/a&gt;,3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In case of any explanation kindly comment! &lt;br /&gt;
&lt;br /&gt;
DON'T&amp;nbsp;FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND!&lt;br /&gt;
&lt;/stdio&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;THANK YOU! VISIT AGAIN


&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>