お誕生日コンテスト

Submission #128080

Source codeソースコード

#include<stdio.h>
#include<algorithm>
int ans[10000];
char str[100][10000];
int main(){
	ans[30]=0-6/(8*9/3+9-7*3/5/8/9)-6*0-0+3/3*8*(4*0)-(9)-(9);
	ans[31]=((1-(5*4)-(1+((6))-(3)-1-(7)*(6)/6/(8/1)/8*4-5)));
	ans[32]=(9+5/5*5+(1)/(((5)*(7)))/1*4-2-1+((9-7+6-9*3/7)));
	ans[33]=4-(5)+3*2/(4/2)*(9)/6+7/((0/3*(3))+1-(1)*6/6/(4));
	ans[34]=((((1+4-3)))*(4/4-1/3*(9)*1*3-9)-1-3*2-(1-2)*(0));
	ans[35]=(1-9)*8-8+6+(6+9/4)*(1*0-8)/1*(((6/9*9)-2-3)*(3));
	ans[36]=(2/7+9+(2)*9-4-4)+(1*5*8+8*4*(4)/(3-6*(0)+2)-(3));
	ans[37]=2-9+5-9*(7)-9/7+2*(((2*6/1*1))-(5)*(4-2/3)*1*(9));
	ans[38]=2/4-9/5+9-4+((2)/((9)))-((((7*(8)))-(6)-(((3)))));
	ans[39]=(((8+6+2*8/6+2*5)-7+7-2/7-(8)-7/1*5-7/2))*(9*1*6);
	ans[40]=((3/(4)))-1-8-0-4+(5)*0+3*7+8*4/7*3/3-((5/9))+7/4;
	ans[41]=0/4/3/(2-4-(9))+7/6*5+1*4+(2*4/8+9/(6)*6*3+2-(9));
	ans[42]=(3-(1/9-1*6))/1+5+(8-(6+9)-1+2-9/8*(8)*(9)/2*(6));
	ans[43]=(((7-6+((4))/7*3+(5)*(7*4*3+1/6/(5+9)*(2/5)+1))));
	ans[44]=((5/(7)/9)+(((4)))-0*8/(2)+(8)*(5*8+3)-(4-3/9)+8);
	ans[45]=(2-4*5+3+0+0/(2+1/4/8+8+3+1/(4))/(7/3/6+(7))*2/6);
	ans[46]=8+2*5/7+1*1-2-3/4-1*2/2+((3))*5*4+(3/(5))/(((9)));
	ans[47]=2+3*(1-7/(2)/1-3/4+2-0)*6-(1+9+3)*1-1*5/7/1-(2)+1;
	ans[48]=8+(3)/4+1*1*((3))+3/((6)+9-(4)-(3/(6*4*9/3))-(5));
	ans[49]=((0+9)*2*6+0*(9))/(3)-7+2+7/7-3+7*0+8-6/(6-7)+5/8;
	ans[50]=8+7+5-7+5+1-(4-1)/8+((1)-0-1-(4/(8-6)/(7)*6)-(7));
	ans[51]=((1-9-(3+2))+(2*((4))-1/9/7+(2/3+(0-8)))+(9)/(9));
	ans[52]=((((2)*7-(7-((3)))*5+0*6-3/(6)+2*8-2*6-9)))-(5*8);
	ans[53]=(7*(4)-7)+1+(((6)*9+6+7)/(8*3))/1+7-6+8+2+9+(6-0);
	ans[54]=(9)+5/(9+1+3)-(2+(0*9)*(2*2))-7/5*4/4/1+((4+7-2));ans[72]=ans[87]=ans[95]=-10;
	ans[0]=ans[8]=1;ans[86]=-23;ans[70]=ans[71]=-20;ans[117]=-17;
	ans[79]=-14;ans[56]=ans[111]=-12;ans[55]=-11;ans[6]=-5;
	ans[9]=-4;ans[16]=ans[82]=20;ans[14]=ans[27]=18;ans[13]=ans[130]=17;
	ans[19]=ans[29]=16;ans[21]=ans[75]=15;ans[18]=ans[73]=13;ans[11]=ans[20]=12;
	ans[25]=ans[126]=11;ans[15]=ans[22]=ans[23]=ans[24]=ans[74]=10;
	ans[2]=ans[7]=9;ans[12]=21;ans[10]=24;ans[77]=25;
	ans[62]=27;ans[26]=ans[83]=30;ans[4]=35;ans[115]=40;
	ans[96]=ans[121]=45;ans[17]=ans[119]=49;ans[28]=56;ans[61]=64;
	ans[57]=81;ans[5]=2;ans[3]=3;ans[1]=4;
	ans[116]=-30;ans[59]=-37;ans[137]=-39;ans[64]=38;
	ans[68]=39;ans[124]=43;ans[99]=61;ans[60]=62;
	ans[80]=-51;ans[65]=-55;
	int t;
	//for(int i=0;i<140;i++)if(!ans[i])printf("%d\n",i+1);
	scanf("%d",&t);
	if(!ans[t])printf("-76\n");
	else{
		printf("%d\n",ans[t]);
	}
}

Submission

Task問題 X - この問題はほんとうにひどい問題であるため,できれば先に他の問題のほうをお楽しみいただければと思っておりまして,ですので他の問題を通し終えて暇になり,かつその暇を
User nameユーザ名 Tozan Southerpacks Япон Бүресе
Created time投稿日時
Language言語 C++ (G++ 4.6.4)
Status状態 WA
Score得点 272
Source lengthソースコード長 2477 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:45:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Test case

Set

Set name Score得点 / Max score Cases
Case0 2 / 2 000.txt
Case1 2 / 2 001.txt
Case2 2 / 2 002.txt
Case3 2 / 2 003.txt
Case4 2 / 2 004.txt
Case5 2 / 2 005.txt
Case6 2 / 2 006.txt
Case7 2 / 2 007.txt
Case8 2 / 2 008.txt
Case9 2 / 2 009.txt
Case10 2 / 2 010.txt
Case11 2 / 2 011.txt
Case12 2 / 2 012.txt
Case13 2 / 2 013.txt
Case14 2 / 2 014.txt
Case15 2 / 2 015.txt
Case16 2 / 2 016.txt
Case17 2 / 2 017.txt
Case18 2 / 2 018.txt
Case19 2 / 2 019.txt
Case20 2 / 2 020.txt
Case21 2 / 2 021.txt
Case22 2 / 2 022.txt
Case23 2 / 2 023.txt
Case24 2 / 2 024.txt
Case25 2 / 2 025.txt
Case26 2 / 2 026.txt
Case27 2 / 2 027.txt
Case28 2 / 2 028.txt
Case29 2 / 2 029.txt
Case30 2 / 2 030.txt
Case31 2 / 2 031.txt
Case32 2 / 2 032.txt
Case33 2 / 2 033.txt
Case34 2 / 2 034.txt
Case35 2 / 2 035.txt
Case36 2 / 2 036.txt
Case37 2 / 2 037.txt
Case38 2 / 2 038.txt
Case39 2 / 2 039.txt
Case40 2 / 2 040.txt
Case41 2 / 2 041.txt
Case42 2 / 2 042.txt
Case43 2 / 2 043.txt
Case44 2 / 2 044.txt
Case45 2 / 2 045.txt
Case46 2 / 2 046.txt
Case47 2 / 2 047.txt
Case48 2 / 2 048.txt
Case49 2 / 2 049.txt
Case50 2 / 2 050.txt
Case51 2 / 2 051.txt
Case52 2 / 2 052.txt
Case53 2 / 2 053.txt
Case54 2 / 2 054.txt
Case55 4 / 4 055.txt
Case56 4 / 4 056.txt
Case57 4 / 4 057.txt
Case58 0 / 4 058.txt
Case59 4 / 4 059.txt
Case60 4 / 4 060.txt
Case61 4 / 4 061.txt
Case62 4 / 4 062.txt
Case63 0 / 4 063.txt
Case64 4 / 4 064.txt
Case65 4 / 4 065.txt
Case66 0 / 4 066.txt
Case67 0 / 4 067.txt
Case68 4 / 4 068.txt
Case69 0 / 4 069.txt
Case70 4 / 4 070.txt
Case71 4 / 4 071.txt
Case72 4 / 4 072.txt
Case73 4 / 4 073.txt
Case74 4 / 4 074.txt
Case75 4 / 4 075.txt
Case76 0 / 4 076.txt
Case77 4 / 4 077.txt
Case78 0 / 4 078.txt
Case79 4 / 4 079.txt
Case80 4 / 4 080.txt
Case81 0 / 4 081.txt
Case82 4 / 4 082.txt
Case83 4 / 4 083.txt
Case84 0 / 4 084.txt
Case85 0 / 4 085.txt
Case86 4 / 4 086.txt
Case87 4 / 4 087.txt
Case88 0 / 4 088.txt
Case89 0 / 4 089.txt
Case90 0 / 5 090.txt
Case91 0 / 5 091.txt
Case92 0 / 5 092.txt
Case93 0 / 5 093.txt
Case94 0 / 5 094.txt
Case95 5 / 5 095.txt
Case96 5 / 5 096.txt
Case97 0 / 5 097.txt
Case98 0 / 5 098.txt
Case99 5 / 5 099.txt
Case100 0 / 5 100.txt
Case101 0 / 5 101.txt
Case102 0 / 5 102.txt
Case103 0 / 5 103.txt
Case104 0 / 5 104.txt
Case105 0 / 5 105.txt
Case106 0 / 5 106.txt
Case107 0 / 5 107.txt
Case108 0 / 5 108.txt
Case109 0 / 5 109.txt
Case110 0 / 5 110.txt
Case111 5 / 5 111.txt
Case112 0 / 5 112.txt
Case113 0 / 5 113.txt
Case114 0 / 5 114.txt
Case115 5 / 5 115.txt
Case116 5 / 5 116.txt
Case117 5 / 5 117.txt
Case118 0 / 5 118.txt
Case119 5 / 5 119.txt
Case120 5 / 5 120.txt
Case121 5 / 5 121.txt
Case122 0 / 5 122.txt
Case123 0 / 5 123.txt
Case124 5 / 5 124.txt
Case125 0 / 5 125.txt
Case126 5 / 5 126.txt
Case127 0 / 5 127.txt
Case128 0 / 5 128.txt
Case129 0 / 5 129.txt
Case130 5 / 5 130.txt
Case131 0 / 5 131.txt
Case132 0 / 5 132.txt
Case133 0 / 5 133.txt
Case134 0 / 5 134.txt
Case135 0 / 5 135.txt
Case136 0 / 5 136.txt
Case137 5 / 5 137.txt
Case138 0 / 5 138.txt
Case139 0 / 5 139.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
000.txt AC 22 ms 796 KB
001.txt AC 19 ms 704 KB
002.txt AC 19 ms 792 KB
003.txt AC 19 ms 704 KB
004.txt AC 18 ms 800 KB
005.txt AC 18 ms 700 KB
006.txt AC 19 ms 700 KB
007.txt AC 21 ms 696 KB
008.txt AC 21 ms 704 KB
009.txt AC 20 ms 800 KB
010.txt AC 20 ms 800 KB
011.txt AC 19 ms 652 KB
012.txt AC 19 ms 800 KB
013.txt AC 19 ms 796 KB
014.txt AC 20 ms 796 KB
015.txt AC 19 ms 800 KB
016.txt AC 20 ms 800 KB
017.txt AC 19 ms 800 KB
018.txt AC 20 ms 700 KB
019.txt AC 19 ms 788 KB
020.txt AC 20 ms 704 KB
021.txt AC 21 ms 800 KB
022.txt AC 19 ms 796 KB
023.txt AC 19 ms 704 KB
024.txt AC 21 ms 796 KB
025.txt AC 19 ms 800 KB
026.txt AC 20 ms 692 KB
027.txt AC 19 ms 800 KB
028.txt AC 19 ms 800 KB
029.txt AC 20 ms 796 KB
030.txt AC 19 ms 792 KB
031.txt AC 18 ms 796 KB
032.txt AC 19 ms 672 KB
033.txt AC 19 ms 704 KB
034.txt AC 20 ms 804 KB
035.txt AC 19 ms 800 KB
036.txt AC 20 ms 796 KB
037.txt AC 20 ms 708 KB
038.txt AC 18 ms 792 KB
039.txt AC 20 ms 800 KB
040.txt AC 18 ms 800 KB
041.txt AC 18 ms 700 KB
042.txt AC 20 ms 796 KB
043.txt AC 19 ms 648 KB
044.txt AC 19 ms 796 KB
045.txt AC 19 ms 764 KB
046.txt AC 19 ms 804 KB
047.txt AC 19 ms 656 KB
048.txt AC 20 ms 656 KB
049.txt AC 19 ms 704 KB
050.txt AC 18 ms 796 KB
051.txt AC 19 ms 796 KB
052.txt AC 19 ms 796 KB
053.txt AC 19 ms 708 KB
054.txt AC 19 ms 704 KB
055.txt AC 19 ms 804 KB
056.txt AC 20 ms 796 KB
057.txt AC 19 ms 796 KB
058.txt WA
059.txt AC 20 ms 732 KB
060.txt AC 20 ms 652 KB
061.txt AC 22 ms 736 KB
062.txt AC 20 ms 656 KB
063.txt WA
064.txt AC 20 ms 656 KB
065.txt AC 20 ms 788 KB
066.txt WA
067.txt WA
068.txt AC 20 ms 712 KB
069.txt WA
070.txt AC 19 ms 700 KB
071.txt AC 20 ms 760 KB
072.txt AC 20 ms 656 KB
073.txt AC 20 ms 656 KB
074.txt AC 20 ms 796 KB
075.txt AC 20 ms 800 KB
076.txt WA
077.txt AC 19 ms 700 KB
078.txt WA
079.txt AC 22 ms 656 KB
080.txt AC 19 ms 708 KB
081.txt WA
082.txt AC 20 ms 800 KB
083.txt AC 19 ms 800 KB
084.txt WA
085.txt WA
086.txt AC 20 ms 656 KB
087.txt AC 19 ms 792 KB
088.txt WA
089.txt WA
090.txt WA
091.txt WA
092.txt WA
093.txt WA
094.txt WA
095.txt AC 20 ms 644 KB
096.txt AC 20 ms 704 KB
097.txt WA
098.txt WA
099.txt AC 19 ms 804 KB
100.txt WA
101.txt WA
102.txt WA
103.txt WA
104.txt WA
105.txt WA
106.txt WA
107.txt WA
108.txt WA
109.txt WA
110.txt WA
111.txt AC 19 ms 800 KB
112.txt WA
113.txt WA
114.txt WA
115.txt AC 18 ms 796 KB
116.txt AC 18 ms 788 KB
117.txt AC 19 ms 700 KB
118.txt WA
119.txt AC 19 ms 696 KB
120.txt AC 18 ms 796 KB
121.txt AC 20 ms 804 KB
122.txt WA
123.txt WA
124.txt AC 20 ms 700 KB
125.txt WA
126.txt AC 19 ms 804 KB
127.txt WA
128.txt WA
129.txt WA
130.txt AC 18 ms 704 KB
131.txt WA
132.txt WA
133.txt WA
134.txt WA
135.txt WA
136.txt WA
137.txt AC 19 ms 804 KB
138.txt WA
139.txt WA