ÀÛ¼ºÀÏ : 11-05-10 12:01
Á¤´äÀÌ ³ª¿ÀÁö ¾Ê¾Æ¿ä.
 ±Û¾´ÀÌ : õ¼ö°æ(hmncws)
Á¶È¸ : 9,478  

#include<stdio.h>

int main()
{
 freopen("input.txt", "r", stdin);
  freopen("output.txt", "w",stdout);

 int i,a,b,c,d,cnt;
 for(i=0 ; i<3 ; i++)
 {
  scanf("%d %d %d %d",&a,&b,&c,&d);
  cnt=a + b + c + d;
  if(cnt==1) printf("A\n");
  else if(cnt==2) printf("B\n");
  else if(cnt==3) printf("C\n");
  else if(cnt==4) printf("D\n");
  else printf("E");
 }
 return 0;
}

 


ÄĽºÄð 11-05-11 11:23
 
º» °­ÀÇ´Â ÇÁ·Î±×·¥À» ±¸ÇöÇÏ´Â ¹æ¹ý¿¡ ÃÊÁ¡À» ¸ÂÃß¾î ÁøÇàµÇ°í ÀÖ½À´Ï´Ù.
¹®Á¦¿¡¼­ ¹è(0)°¡ 1°³ µî(1)ÀÌ 3°³ÀÌ¸é µµ(A)¶ó°í ³ª¿Í ÀÖÀ¸¹Ç·Î 3ÀÌ µµ°¡ µÇ¾î¾ß ÇÕ´Ï´Ù.
Áï À§ÀÇ ÇÁ·Î±×·¥Àº ¹è¿Í µîÀÌ ¼­·Î ¹Ù²î¾î ÀÖ´Â °ÍÀÔ´Ï´Ù.
µû¶ó¼­ ¹®Á¦¿¡ ¸Â°Ô Á¤È®ÇÏ°Ô ±¸ÇöÇÏÀÚ¸é ´ÙÀ½°ú °°ÀÌ µÇ¾î¾ß ÇÕ´Ï´Ù.

#include<stdio.h>

int main()
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w",stdout);

int i,a,b,c,d,cnt;
for(i=0 ; i<3 ; i++)
{
scanf("%d %d %d %d",&a,&b,&c,&d);
cnt=a + b + c + d;
if(cnt==1) printf("C\n");
else if(cnt==2) printf("B\n");
else if(cnt==3) printf("A\n");
else if(cnt==4) printf("E\n");
else printf("D\n");
}
return 0;
}

°­ÀÇ¿¡¼­µµ ÀÌÁ¡±îÁö °í·ÁÇÏ¿© ¼öÁ¤ÇØ ³õµµ·Ï ÇÏ°Ú½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
 
 

Total 665
¹øÈ£ Á¦   ¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
45 ¾Ë°í¸®Áò °­ÀǽÅûÇÕ´Ï´Ù~^^ (1) ȲÈñ¼± 07-10 8300
44 ¾Ë°í¸®Áò °­ÀǽÅûÀÌ¿ä (1) ±è¼±¹Ì 07-08 8307
43 ¾Ë°í¸®Áò °­ÀÇ ½Åû (1) ÃÖÇö¹Î 07-05 8303
42 ±³À°½Åû°ú¸ñ¾îµð¼­Ã£³ª¿ä (1) ¾Èº´Å 06-29 8350
41 µ¿¿µ»ó Àç»ý (7) ±èÅ°æ 06-28 8523
40 2006 Àü±¹ º»¼± 1¹ø ¹®Á¦ (3) ±ÝÀº½Ç 06-27 8725
39 ¾Ë°í¸®µë °­ÀÇ ½Åû (1) ¹®ÀÏÁØ 06-20 8529
38 ¾Ë°í¸®Áò °­ÀÇ ½Åó (1) ÀÌ¿©Áø 06-15 8835
37 ¹Ìµð¾î ¿¬°áÁß (2) À̼öÁ¤ 05-20 9478
36 Dyamic(µ¿Àü ¹Ù²ãÁÖ±â) (1) ±èÇö¼ö 05-19 16272
35 ITQ ÀÎÅÍ³Ý ¿ÀŸ (1) ¹ÚÂùÈ£ 05-18 13805
34 ÀÔ±ÝÇߴµ¥ »¡¸® È®ÀÎÁ» ÇØÁÖ¼¼¿ä (1) °­¹Î¿ì 05-15 8846
33 Âü¿Ü ¹ç ¹®Á¦ (1) ÀÌÁ¤¹Î 05-14 11106
32 °­ÀÇ°¡ ´Ù½Ã °áÁ¦Àü»óÅ·Πµ¹¾Æ°¬´øµ¥ (1) ±èµ¿Çö 05-14 8535
31 ^^~¼öÁ¤Çߴٴµ¥ ¹Ù²ï°Ô ¾ø½À´Ï´Ù??? (1) ÀÌÁ¤¹Î 05-12 8669
30 ¿Ã¸²ÇÇ¾Æµå º»¼±´ëºñ Full ÆÐÅ°Áö ÀÌÁ¤¹Î 05-12 8626
29 [Á¤´äÀº ¾îµð¿¡?] Á¤¿Ã¸ðÀÇÅ×½ºÆ® 2011³â 5¿ù (1) ÇãÆȸ¸ 05-10 11773
28 Á¤´äÀÌ ³ª¿ÀÁö ¾Ê¾Æ¿ä. (1) õ¼ö°æ 05-10 9479
27 ¾Ë°í¸®Áò ½ÅûÇߴµ¥¿ä (1) Á¤½Âȯ 05-07 8658
26 Á¤º¸¿Ã¸²ÇÇ¾Æµå º»¼±¹®Á¦ Ç®ÀÌ (1) ÀÌ°æÁø 05-03 12321
   31  32  33  34  

ȸ»ç¼Ò°³ | °³ÀÎÁ¤º¸Ã³¸®¹æħ | ÀÌ¿ë¾à°ü | ã¾Æ¿À½Ã´Â ±æ | À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ | »ç¾÷ÀÚÁ¤º¸È®ÀÎ
°æ±âµµ ¾È¾ç½Ã µ¿¾È±¸ È£°èµ¿ 1065-10 Çù¼º°ñµåÇÁ¶óÀÚ 601È£ ÇÑÄÄ¿¡µàÄÉÀ̼Ç(ÁÖ) TEL : 031-388-8840 FAX : 031-388-0996
´ëÇ¥ÀÚ : ±èµ¿±Ô »ç¾÷ÀÚ¹øÈ£ : 130-86-02870 Åë½ÅÆǸž÷½Å°í¹øÈ£ : Á¦ 2010-°æ±â¾È¾ç-888È£
COPYTIGHT(C) ÇÑÄÄ¿¡µàÄÉÀ̼Ç(ÁÖ), ALL RIGHT RESERVED.
´ãÀº°­Á : 0