 
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.adonaimedrado.pro.br/wiki/index.php?action=history&amp;feed=atom&amp;title=Solu%C3%A7%C3%A3o%3A_Impedido_-_SPOJ_%28Luis_Bernardo%29</id>
		<title>Solução: Impedido - SPOJ (Luis Bernardo) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.adonaimedrado.pro.br/wiki/index.php?action=history&amp;feed=atom&amp;title=Solu%C3%A7%C3%A3o%3A_Impedido_-_SPOJ_%28Luis_Bernardo%29"/>
		<link rel="alternate" type="text/html" href="https://www.adonaimedrado.pro.br/wiki/index.php?title=Solu%C3%A7%C3%A3o:_Impedido_-_SPOJ_(Luis_Bernardo)&amp;action=history"/>
		<updated>2026-05-27T16:39:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://www.adonaimedrado.pro.br/wiki/index.php?title=Solu%C3%A7%C3%A3o:_Impedido_-_SPOJ_(Luis_Bernardo)&amp;diff=2746&amp;oldid=prev</id>
		<title>200.17.147.2: New page: &lt;code lang=&quot;c&quot;&gt; #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt;  char temImpedido(const int *,int, const int *, int);   int main(){   int numAtacante,numDefensor,index,num;   int *posicaoAtacantes;...</title>
		<link rel="alternate" type="text/html" href="https://www.adonaimedrado.pro.br/wiki/index.php?title=Solu%C3%A7%C3%A3o:_Impedido_-_SPOJ_(Luis_Bernardo)&amp;diff=2746&amp;oldid=prev"/>
				<updated>2009-04-29T12:25:28Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;lt;code lang=&amp;quot;c&amp;quot;&amp;gt; #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;stdlib.h&amp;gt;  char temImpedido(const int *,int, const int *, int);   int main(){   int numAtacante,numDefensor,index,num;   int *posicaoAtacantes;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;code lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
char temImpedido(const int *,int, const int *, int); &lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
  int numAtacante,numDefensor,index,num;&lt;br /&gt;
  int *posicaoAtacantes;&lt;br /&gt;
  int *posicaoDefensores;&lt;br /&gt;
  scanf(&amp;quot;%d %d&amp;quot;,&amp;amp;numAtacante,&amp;amp;numDefensor);&lt;br /&gt;
  while((numAtacante!=0)&amp;amp;&amp;amp;(numDefensor!=0)){&lt;br /&gt;
     posicaoAtacantes = (int *) malloc(sizeof(int)*numAtacante);&lt;br /&gt;
     posicaoDefensores = (int *) malloc(sizeof(int)*numDefensor);&lt;br /&gt;
     for(index = 0; index&amp;lt;numAtacante ;index++){&lt;br /&gt;
        scanf(&amp;quot;%d&amp;quot;,&amp;amp;num);&lt;br /&gt;
        posicaoAtacantes[index] = num;&lt;br /&gt;
     }&lt;br /&gt;
     for(index = 0; index&amp;lt;numDefensor ;index++){&lt;br /&gt;
        scanf(&amp;quot;%d&amp;quot;,&amp;amp;num);&lt;br /&gt;
        posicaoDefensores[index] = num;&lt;br /&gt;
     }&lt;br /&gt;
     printf(&amp;quot;%c\n&amp;quot;,temImpedido(posicaoAtacantes,&lt;br /&gt;
                                numAtacante,&lt;br /&gt;
                                posicaoDefensores,&lt;br /&gt;
                                numDefensor));				&lt;br /&gt;
     scanf(&amp;quot;%d %d&amp;quot;,&amp;amp;numAtacante,&amp;amp;numDefensor);&lt;br /&gt;
  }&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
char temImpedido(const int * atacante,int sizeA, const int * defensor,int sizeD){&lt;br /&gt;
  int index,achou,index2;&lt;br /&gt;
  int numDefensor = 0;&lt;br /&gt;
  achou = 0;&lt;br /&gt;
  for(index = 0; index&amp;lt; sizeA;index++){&lt;br /&gt;
     numDefensor = 0;&lt;br /&gt;
     for(index2 = 0; index2 &amp;lt; sizeD; index2++){&lt;br /&gt;
        if(defensor[index2]&amp;lt;= atacante[index])&lt;br /&gt;
            numDefensor++;&lt;br /&gt;
     }&lt;br /&gt;
     if(numDefensor &amp;lt; 2){&lt;br /&gt;
        achou = 1;	&lt;br /&gt;
        break;&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
  if(achou)&lt;br /&gt;
     return 'Y';&lt;br /&gt;
  else&lt;br /&gt;
     return 'N';&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>200.17.147.2</name></author>	</entry>

	</feed>