## 12060 - All Integer Average

Moderator: Board moderators

New poster
Posts: 16
Joined: Thu Oct 10, 2013 8:06 am

### 12060 - All Integer Average

remove
Last edited by sadmansobhan on Sat Dec 21, 2013 10:42 am, edited 1 time in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 12060 - All Integer Average

That is not correct for the sample I/O. See http://ideone.com/ah2Ghs
Check input and AC output for thousands of problems on uDebug!

New poster
Posts: 16
Joined: Thu Oct 10, 2013 8:06 am

### Re: 12060 - All Integer Average

Code: Select all

``````#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main()
{

int sum,test,num,avg,f1,temp,caseno=0,temp1,loop,loop1;
while(scanf("%d", &test)!=0)
{
if(test==0)
break;
caseno++;
sum=0;
loop=0;
loop1=0;
for(int k=0;k<test;k++)
{
scanf("%d", &num);
sum+=num;
}
avg=sum/test;
temp1=abs(avg);
while(temp1>0)
{
temp1=temp1/10;
loop1++;
}
printf("Case %d:\n",caseno);
if(sum%test!=0)
{
f1=sum%test;
if(test%f1==0)
{
test=test/f1;
temp1=abs(test);
while(temp1>0)
{
temp1=temp1/10;
loop++;
}
if(avg<0)
{
avg=abs(avg);
test=abs(test);
for(int n=1;n<loop1;n++)
printf(" ");
for(int m=1;m<loop;m++)
printf(" ");
printf("   1\n");
printf("- %d",avg);
for(int l=0;l<loop;l++)
printf("-");
printf("\n");
for(int n=1;n<loop1;n++)
printf(" ");
printf("   %d",test);
}
else if(avg>0)
{
for(int n=1;n<loop1;n++)
printf(" ");
for(int m=1;m<loop;m++)
printf(" ");
printf(" 1\n");
printf("%d",avg);
for(int l=0;l<loop;l++)
printf("-");
printf("\n");
for(int n=1;n<loop1;n++)
printf(" ");
printf(" %d",test);
}
else
{
if(sum<0)
{
test=abs(test);
for(int m=1;m<loop;m++)
printf(" ");
printf("  1\n");
printf("- ");
for(int l=0;l<loop;l++)
printf("-");
printf("\n");
printf("  %d",test);
}
else
{
for(int m=1;m<loop;m++)
printf(" ");
printf("1\n");
for(int l=0;l<loop;l++)
printf("-");
printf("\n");
printf("%d",test);
}
}
}
else
{
temp=f1/2;
for(int j=2;j<=temp;j++)
{
if(f1%j==0&&test%j==0)
{
f1=f1/j;
test=temp/j;
}
}
temp1=abs(test);
while(temp1>0)
{
temp1=temp1/10;
loop++;
}
if(avg<0)
{
avg=abs(avg);
f1=abs(f1);
test=abs(test);
for(int n=1;n<loop1;n++)
printf(" ");
for(int m=1;m<loop;m++)
printf(" ");
printf("   %d\n",f1);
printf("- %d",avg);
for(int l=0;l<loop;l++)
printf("-");
printf("\n");
for(int n=1;n<loop1;n++)
printf(" ");
printf("   %d",test);
}
else
{
for(int n=1;n<loop1;n++)
printf(" ");
for(int m=1;m<loop;m++)
printf(" ");
printf(" %d\n",f1);
printf("%d",avg);
for(int l=0;l<loop;l++)
printf("-");
printf("\n");
for(int n=1;n<loop1;n++)
printf(" ");
printf(" %d",test);
}
}
}
else
{
if(avg<0)
{
avg=abs(avg);
printf("- %d",avg);
}
else
printf("%d",avg);
}
printf("\n");
}
return 0;
}
``````
this my edited code brianfry713. this code can match with sample i/0. but i get WA again. plz help.

dcms2
New poster
Posts: 1
Joined: Tue Dec 31, 2013 7:12 am

### Re: 12060 - All Integer Average

Input:

Code: Select all

``````1 0
79 -88 -30 -50 -71 -4 7 -86 41 -9 -50 -16 9 -22 58 -98 21 -58 -16 88 10 42 -85 -67 11 2 13 -59 3 -72 -75 66 -23 16 -13 18 -22 -86 -6 79 44 -67 -59 3 -75 68 -1 32 77 89 -71 -30 64 -31 -1 22 24 -63 30 -87 -60 -21 -78 69 -97 98 -53 -45 -18 3 -50 67 31 7 44 -60 58 32 25 20
202 50 -19 -23 -79 92 80 -53 92 -19 88 -50 58 78 -67 -11 4 61 -38 -52 -75 40 -59 61 -92 78 -70 -80 46 64 15 28 21 -90 -17 -73 -82 22 23 -78 -84 -21 69 30 60 -79 -55 -47 -10 -31 -34 -98 54 80 -9 69 84 -9 -42 -39 29 87 -22 -40 12 -10 -96 -59 -33 68 83 50 85 73 43 -33 -64 -91 80 -35 -42 92 -68 7 98 -68 8 89 26 -43 -87 -22 -85 -97 -22 -44 -60 13 -45 47 78 -72 -40 -9 92 93 47 40 -25 -75 67 -30 6 -44 -51 72 -8 -6 96 -51 77 93 -97 1 -95 74 32 -14 65 59 -70 -23 -40 32 23 -79 87 52 0 77 -47 -38 -23 0 0 0 -15 67 34 84 -25 41 42 -81 -16 62 86 87 -82 80 -84 -16 93 55 95 -28 -75 -69 68 66 -34 -62 -19 72 -72 66 68 -59 40 -54 -42 -37 0 -55 43 -89 37 -79 38 18 90 53 -48 45 21 25 36 86 92 -2 -18 -39 69
196 -16 77 84 -35 -18 -41 6 -58 92 12 -38 19 -75 -18 53 88 -49 94 1 23 85 67 -52 9 20 -18 33 -19 -59 -23 -31 -28 -43 -60 59 -13 -3 61 46 -31 -65 -70 93 85 -21 15 -59 -20 -61 -31 -75 77 67 -85 84 -90 -74 66 -50 -97 -90 -58 -28 51 71 -55 -88 -3 78 -73 -81 -65 8 8 90 -15 5 -80 84 -27 -54 84 99 -27 12 15 81 -15 31 -63 54 -51 -47 45 63 31 -94 98 -64 -33 84 -77 50 -50 -46 26 81 -97 -99 45 62 -99 82 -13 -26 -57 -18 -50 -77 -97 -1 31 93 -29 58 -72 64 79 19 -41 -26 -79 -43 26 -77 64 -49 -5 -6 -4 -56 55 15 39 -13 -63 -23 36 -67 29 -52 -39 18 -12 93 28 -68 -80 76 91 43 89 -2 70 34 -50 66 -63 -7 12 -18 58 10 73 -42 67 -97 29 -38 -14 94 47 -72 -22 61 -97 -68 -63 -39 88 -58 79 4 -25 -32 13
147 -93 -52 53 85 32 -62 77 79 77 43 -65 -67 63 -84 52 -24 70 57 -32 -94 -18 31 -84 3 -68 25 -92 -92 80 42 -64 -14 2 17 -9 -34 -22 -41 6 -82 88 -33 -24 41 9 62 2 -31 -3 -67 94 -46 25 -48 87 -38 5 72 53 -82 -35 18 4 73 -65 -49 1 -90 -49 -15 -95 -84 -65 -50 72 -35 -52 23 -37 -97 -91 37 -30 46 96 -8 63 -48 -94 -79 -96 -72 35 28 98 -43 -61 -13 -11 46 -14 25 -82 50 63 -39 37 84 69 19 -42 -3 -67 -22 -74 77 57 39 41 90 53 81 36 21 -85 -18 53 -56 -14 -87 39 -12 -99 -90 -87 27 -22 -26 -96 13 -91 -50 -47 -40 -85 -95 52
148 -46 25 -83 9 36 -60 74 85 74 37 73 51 -93 81 45 -53 -74 -30 -7 -76 37 73 50 -82 -23 69 -17 -28 73 6 78 61 34 24 -76 -57 -1 25 18 -51 73 -55 45 60 27 71 30 37 -31 19 54 29 12 57 -69 72 -47 21 -39 93 44 -15 -54 -89 -77 -59 -66 -10 -93 75 88 45 -78 64 -99 -60 -83 78 -30 -37 -55 56 24 -41 -44 21 82 -14 -69 -77 -17 -6 49 0 93 -21 -90 -18 -99 -11 -39 97 -48 -11 -34 -86 -76 -61 -86 53 -35 62 -81 57 20 -22 -55 45 -73 81 22 49 48 -35 9 5 -10 26 69 77 -38 -60 83 -31 -6 14 -31 -57 66 22 42 -28 87 -34 -34 -54 30 60
153 42 -17 -35 92 -67 -85 -74 -29 7 62 84 3 -74 90 33 79 -15 9 77 26 27 62 -93 4 -26 68 40 -72 -56 -22 19 -94 -44 -28 61 -48 -37 -88 -76 -49 -12 -26 -61 -89 -12 3 20 11 6 2 -86 -81 -89 -30 -1 -56 -99 -66 0 2 38 18 80 62 89 -95 -16 -35 51 -58 74 33 -27 21 96 -14 -43 21 4 -66 -87 -6 -40 -72 4 10 98 11 -18 -27 -21 -82 -78 -68 22 33 -14 -8 77 9 -7 -95 -70 7 -38 87 8 14 -75 21 29 53 89 -73 39 46 -29 93 -44 90 -95 79 -83 -6 -10 10 46 -39 44 13 2 7 -85 84 -11 -50 79 13 37 6 36 68 91 -59 -92 40 35 -32 -67 20 -48 27 56
11 40 22 77 72 2 -85 -32 47 83 -77 66
136 -56 -65 55 -5 6 39 -25 67 39 -2 -60 -97 57 97 44 -38 49 65 12 -47 -37 -72 72 4 -36 -9 5 65 -56 6 -80 3 27 12 -67 17 -22 19 87 -27 -65 91 -80 -50 94 -76 80 -14 22 -3 45 27 54 -42 49 -49 -44 72 -13 51 99 -19 16 88 34 -89 83 -1 -65 -67 -60 -24 91 -37 -92 -17 3 -40 51 -52 -98 54 -12 -40 23 78 -74 -54 -27 -65 52 3 41 38 -30 -78 -24 -75 46 59 28 -21 -96 51 -11 32 -87 13 -18 73 21 18 18 -59 19 -82 24 -74 -22 38 -73 -43 -71 -28 -42 -70 12 -37 -97 38 85 46 82 -5 64 83
112 72 77 3 52 -61 26 -49 45 -28 56 -20 87 -38 -71 -17 -77 -7 34 -84 -3 16 17 -70 3 -95 -43 27 59 90 57 -65 -9 -48 -21 75 33 -44 -56 -76 -98 79 -20 93 -61 42 -39 -70 77 -98 -18 34 -90 -71 -95 -94 31 -61 71 -78 -43 86 28 -80 -67 50 85 86 -50 53 -1 -93 -32 -81 -32 45 -80 -69 -18 -82 58 -55 -30 -38 25 67 28 48 2 2 87 2 15 0 16 72 -97 -90 81 -32 92 17 7 -44 -1 76 -36 31 58 -42 82 87 -66
155 -19 -46 59 -39 -26 -60 -8 73 -27 35 -31 -50 -58 36 -54 -3 -19 74 57 -68 95 98 91 68 96 33 46 -78 -53 76 56 -93 39 16 95 96 29 -87 -41 -47 12 53 92 36 4 -52 60 75 58 69 44 -67 -96 67 78 58 -20 67 -68 74 61 95 -99 -14 -48 -10 91 -93 88 28 -36 19 -23 -67 -79 2 63 55 -7 -46 -14 46 -65 53 -62 -80 61 85 85 -29 11 37 -46 -2 -7 -43 51 28 40 37 -65 -89 -8 43 71 -84 -95 -35 -75 93 -56 13 51 31 -36 31 9 -37 -46 -54 68 -85 3 15 5 -40 96 -67 66 -16 -15 92 67 25 54 82 -24 -69 24 6 60 -71 -78 87 45 -63 87 -16 6 12 88 59 -56 -57 21
178 61 -42 -9 41 -81 -85 82 -55 -93 -64 55 -68 -33 -90 -98 -95 55 -61 38 -42 63 45 -39 -38 -17 96 81 32 31 96 -85 51 -92 -91 -68 -43 -62 91 -34 -8 81 -68 24 -89 -94 80 -86 -2 -85 -94 31 -46 -55 3 -16 57 20 0 0 -55 78 94 -87 75 -97 -81 62 13 77 5 68 81 -63 -91 -68 -10 96 7 9 0 -53 -76 -77 -78 -53 41 19 41 62 27 -61 -35 -20 65 -50 68 -32 55 61 68 -98 67 36 91 92 39 -54 -8 41 -37 82 35 -7 6 42 79 -54 -24 28 24 54 76 92 -42 80 -36 -48 61 37 -37 -87 39 -14 -66 -11 -65 -3 32 -99 -78 -44 92 -37 98 11 0 73 40 -68 98 72 0 -88 56 2 94 2 -82 -73 38 69 68 47 42 -28 -41 -44 51 80 40 6 -64 42 71 91 -65 -14 -91
171 90 86 -14 -72 6 -80 60 -34 11 87 -64 33 50 58 -83 -34 71 -8 -40 7 18 -41 16 35 -27 -10 -95 42 -11 45 -8 -26 53 94 54 43 46 48 -17 -36 42 -2 85 -36 20 10 99 -58 62 6 -90 94 -38 10 -84 -21 86 -11 -2 -68 -46 -99 92 10 -29 -42 14 54 -87 39 36 -66 -34 85 75 46 -4 90 -49 82 70 3 17 -75 96 82 17 62 -35 -11 -59 30 -86 0 -32 57 -10 -93 -56 -27 46 -57 -68 23 23 -11 74 67 -29 -81 -96 -12 16 -20 78 0 -96 50 23 79 37 -11 -64 23 -48 -20 -22 -3 4 -60 59 4 -18 -54 -49 -51 -98 -4 74 -84 71 79 -53 -42 31 60 -39 -1 28 -93 99 10 36 26 -3 -23 3 -16 -97 -97 36 -37 19 -7 -87 30 -95 82 -97 -40 16
5 82 -53 -14 72 31
83 11 -58 60 34 -35 52 45 -65 -56 39 26 35 -27 -13 74 -16 38 -80 -47 17 74 -11 -97 -74 -12 -58 -3 -3 73 -5 60 56 -78 2 43 69 20 42 88 -34 85 89 -45 -48 -9 -79 -18 2 58 -71 77 25 85 -80 90 -1 -91 74 61 65 81 -46 47 -83 -79 -27 -65 73 -45 14 -61 -41 13 -19 -7 95 35 14 97 -38 -10 -71 7
79 44 -59 87 -9 98 -5 -88 -93 -63 83 -37 74 -93 -34 -7 85 1 16 -24 -87 51 48 -58 61 81 -96 41 -99 -95 -36 -93 -22 74 60 -26 69 -80 -73 54 72 -10 -53 -2 -92 87 -3 5 -69 -62 76 -31 4 -43 -80 -51 -69 51 97 19 -58 -3 83 -54 -74 65 -3 97 80 23 -97 39 41 34 -69 -71 -5 -13 17 42
35 54 30 -60 -29 -98 -6 71 76 -42 54 -82 -6 71 95 -94 47 -4 -65 -28 -82 -15 -19 23 -94 -86 0 31 -18 30 -43 -45 -74 -3 -8 -52
112 -61 -89 -27 -75 -84 43 98 -53 1 51 9 -30 -46 63 79 -4 75 -18 25 63 -70 -94 21 -2 78 9 17 -83 -52 53 -32 30 21 47 26 57 -7 65 -10 -59 59 92 -63 -25 5 99 17 -80 96 -57 31 -6 26 -83 52 32 65 -28 -63 81 37 55 41 -90 75 28 2 -40 0 36 13 9 24 -45 88 23 -23 46 72 -72 -39 -69 -59 8 -4 -84 -89 -30 -35 -7 -70 -44 -12 -65 68 -90 44 -58 42 7 -27 -47 -33 84 7 -70 -98 10 27 -30 74 -56
54 60 -55 80 -64 54 68 12 21 -17 -74 95 -22 49 3 3 82 30 55 -18 -62 -65 -99 -69 -80 49 17 52 81 2 26 20 9 26 -7 -63 43 -95 25 -23 -82 39 -49 0 -14 64 -32 94 24 56 52 27 -53 90 82
128 -25 68 -8 39 -17 61 -39 77 6 19 -42 13 -66 -60 16 -23 -39 -30 45 -39 -66 5 -36 -30 -16 -19 10 85 -85 34 -21 -84 -8 57 -54 44 -48 -64 -24 -50 11 47 67 82 -14 99 5 -85 -62 -9 20 11 -81 13 -51 86 14 -84 -17 41 9 -30 81 2 48 -85 64 52 24 0 -97 77 -92 -14 60 -17 74 -80 -28 2 -61 -62 0 70 25 -47 -74 20 -35 0 96 59 -93 41 57 45 79 -20 46 -58 -8 47 -62 70 -78 10 -57 -75 70 44 -82 -48 -61 46 17 35 86 75 -37 4 5 54 -75 -92 -89 -65 46 -15
188 -67 34 -45 92 36 -92 -40 -59 -81 -84 76 -14 -33 -4 -27 51 83 91 93 -97 43 57 39 26 -62 86 78 48 -50 -50 8 80 40 70 77 66 -79 86 -80 -35 88 -46 20 9 -60 65 63 62 96 -40 -23 49 -21 76 -4 20 -5 76 -47 -45 -84 32 -2 14 -96 -20 -61 -60 -30 98 -19 -51 -21 -96 39 -1 -26 -15 67 -82 3 35 -89 -39 87 4 72 -88 26 43 -48 80 10 -54 39 -9 3 -92 9 20 -95 -59 -45 82 -98 91 -25 82 16 -2 -2 -28 -30 75 -94 69 -41 34 88 85 -99 35 95 36 39 -54 -8 37 77 12 -83 10 -32 -49 91 -41 -47 4 19 -29 32 19 -49 95 -20 -12 58 -61 97 -36 -11 -91 11 -80 90 -77 32 -15 16 -54 -55 90 97 -72 16 36 43 66 14 -86 -11 -28 -96 8 74 -63 66 -10 85 -50 21 68 -86 30 34 59 -17 -55
140 -25 66 -34 -3 22 -69 -75 -56 0 30 98 29 -63 77 89 -70 20 89 -79 -90 -16 -62 34 -30 -75 12 -70 -64 98 -30 4 -14 89 -48 -64 -13 51 13 55 -18 97 -13 2 56 -10 -80 -9 -36 -85 1 -20 -84 66 -53 -73 -76 -49 -29 -57 -40 -58 43 -83 -36 -96 78 4 -95 5 -9 13 -17 -60 17 51 64 -7 64 62 -99 85 -70 -63 86 93 83 59 -27 -97 -71 61 96 -32 89 -76 87 -57 -69 -2 13 86 98 -14 15 -69 12 55 48 46 -63 -75 17 -59 63 17 -84 -87 -86 11 38 24 -1 88 52 -73 -63 35 -50 -8 -76 59 19 -5 3 69 -30 -85 -88 9 21
177 -75 11 -74 -81 -48 -11 -25 29 37 -23 91 29 71 -18 1 -31 79 -25 42 -82 64 -56 -68 -66 -67 -52 13 49 7 72 20 -76 -97 59 49 -77 77 -20 32 -18 91 86 -43 -72 43 16 -68 -61 -65 -19 -72 45 -66 74 -98 -90 -53 17 88 56 51 -91 -73 -54 -72 -15 50 23 55 -24 -41 -10 -78 9 85 11 -76 5 56 -7 -77 -60 -51 63 -49 -80 -29 90 -1 -89 -65 -67 -45 34 67 -60 88 69 -68 -41 95 56 63 66 -66 -26 20 40 26 94 -89 4 57 -64 59 -49 -17 98 34 53 66 -60 -39 4 35 -68 91 89 -49 31 -11 -66 56 94 62 -60 -4 -63 68 13 -33 77 -11 77 -71 31 33 -62 -91 66 0 -11 -60 -10 -53 -77 -23 45 -44 89 12 -92 35 55 50 -4 -55 86 -27 -19 34 26 54 32 83 29 -67
51 -97 0 -99 -99 77 94 -98 -46 -80 61 -43 -58 33 -96 -13 45 -90 19 -33 -64 -5 78 51 -21 7 84 10 -77 -96 73 3 -31 -84 36 -82 51 9 -98 73 21 3 -45 67 -95 -62 62 2 -7 80 -48 73
75 18 -87 20 -76 64 13 -84 14 12 -30 6 97 33 13 4 -11 -51 77 -86 -47 -17 -58 -26 94 -5 15 60 63 -3 31 64 53 -34 39 63 55 -10 -18 78 51 -76 -42 -59 8 22 -36 -78 -94 -48 47 37 74 12 62 -44 -15 75 1 78 7 9 -28 -25 52 -45 -5 42 -87 27 21 -75 28 52 42 12
189 -72 -63 31 0 99 67 36 -23 19 8 81 67 -26 53 -42 95 2 48 -67 -63 56 40 -81 -24 62 79 -80 38 54 -21 -4 34 20 51 53 40 65 89 77 -6 -54 -32 34 27 69 52 57 90 12 31 -9 -84 88 81 -42 -13 96 -38 -38 27 -35 -47 75 -94 97 -73 75 90 -91 44 -35 60 -22 93 -40 -34 16 61 -9 50 59 -16 71 27 -68 63 -3 -72 34 -87 0 -87 76 -7 63 -3 15 29 -33 3 -85 82 -8 81 -63 -25 62 67 -7 -56 -89 5 -11 -64 -13 33 0 96 -25 57 8 -14 54 89 -73 -37 22 79 64 -36 -11 -42 -7 -66 -14 15 67 -40 16 18 31 34 -12 94 54 -82 79 93 65 3 15 41 -35 -55 -73 54 -39 22 -90 -89 26 -29 14 -90 66 12 52 -28 -40 -32 -99 36 -23 -70 -73 -13 58 -62 -62 47 -66 -88 -97 -79 78 67 48 -80 -5
38 85 -16 -99 -77 -70 -90 19 61 -26 99 32 10 -81 -90 73 -33 67 4 -95 -15 72 39 61 -1 -58 41 57 17 -54 3 10 -10 47 -12 -60 -3 -62 65
81 80 99 -73 60 -10 84 -57 -62 -87 44 6 -59 -10 -25 -4 18 -24 42 -86 85 -96 -1 34 -60 -38 18 -36 -89 76 -33 -55 -67 4 52 -72 55 -35 -19 12 -10 51 87 87 21 47 -7 0 67 2 -38 -93 -82 -84 -15 41 -2 80 15 -45 -17 -95 67 30 45 67 -59 -35 85 -93 -17 52 36 -72 63 20 17 -56 -21 87 6 -16
77 -40 22 -91 -63 79 -35 72 5 -23 -17 -23 42 -96 12 93 78 -25 35 92 -71 -76 24 84 50 55 -68 4 -47 85 76 -66 53 -91 -72 0 0 64 56 -76 37 -77 -42 69 -86 -77 -29 47 95 -55 25 94 -58 -23 -37 -20 -59 52 -28 -35 85 81 56 -28 -63 -91 38 -35 -24 89 -32 -32 -40 -73 -62 -68 8 64
138 -56 -36 -39 90 -56 72 27 48 54 -68 55 77 87 60 37 -44 64 -11 25 96 27 89 -3 -30 -62 -89 -76 -80 -60 -40 -10 51 -83 80 -11 -6 55 -90 33 -41 9 62 -9 -11 -81 85 19 28 -77 17 -12 -72 55 -21 -97 -54 27 25 -29 50 -86 -56 -91 20 12 -61 -61 -34 88 -57 66 58 19 -52 1 25 -56 -79 -40 21 -35 16 -54 12 85 43 -33 87 2 -13 -45 -16 43 -80 -74 77 -60 19 -38 75 -19 49 53 -63 -27 78 7 84 -6 -14 58 15 11 -40 -22 -41 5 -84 -99 -85 91 -82 -58 35 46 -36 -12 -10 90 -80 -5 11 -96 -20 -74 36 -61 -60
61 33 -89 -83 43 -73 -36 14 -2 -92 -16 32 92 -56 -86 -54 -67 -6 29 94 -27 -14 -87 -87 -46 24 -23 -6 -84 -31 -41 82 75 -17 48 73 -92 -85 91 76 -28 16 78 27 -92 -37 -42 30 -41 30 92 -89 -73 -28 -62 -25 -49 -14 -52 -1 -69 -43
14 -72 98 4 85 -81 -58 -31 92 83 55 75 -61 -16 33
44 -15 -81 -23 -59 78 -86 61 -83 -24 -73 -29 -83 2 -68 -2 -97 -16 51 0 86 46 -89 13 63 -32 -33 -27 -45 -20 14 -67 -41 -99 -67 -26 -96 12 -84 90 4 -52 31 -1 73
200 -85 89 61 -74 56 13 -5 65 57 -57 61 -89 12 -48 0 -3 88 45 -82 -51 19 70 -27 23 41 14 -38 94 -85 96 -95 74 59 -18 -69 74 -39 -54 -45 -49 77 72 21 53 -11 98 -25 4 -70 75 -17 -7 -73 -49 13 66 29 -83 84 -73 23 43 -14 14 10 -25 -50 -69 26 10 21 23 9 -78 -5 23 -66 55 -82 12 81 83 -96 5 -84 66 -55 23 46 25 90 59 66 1 49 -65 -36 74 43 -86 49 -56 37 95 -14 2 -49 -60 -69 -89 35 -98 -12 93 84 -69 40 -57 -18 94 42 -58 21 98 -66 68 -93 -58 -55 -45 -73 5 88 -88 49 61 -39 -20 41 3 -64 26 -5 86 -3 -42 63 -35 -11 42 48 0 59 50 -51 -60 -89 -94 -88 9 -34 35 11 -91 -8 -19 -30 66 -44 -24 -18 -80 -12 -9 23 16 -14 53 99 60 23 26 75 76 -49 -19 -78 -61 -21 47 92 -83 22 -59 -49 55 56 76 -99 69
114 87 64 80 -31 -57 63 60 72 -56 64 81 59 -66 -66 -41 -91 7 62 48 86 93 -14 -64 53 35 89 73 -16 58 -56 73 0 91 46 9 -48 -82 42 -50 64 78 -27 -89 29 -91 -43 8 -27 11 17 -95 21 -65 53 -83 13 -17 84 82 -96 -50 -18 -73 23 -26 -82 -9 1 -2 -29 59 62 71 -7 36 -16 -2 21 38 -36 81 -29 21 -17 4 -65 14 9 46 -57 43 42 5 -36 -69 74 -41 -59 73 52 -37 2 -84 77 96 37 95 -92 33 24 -7 -78 56 -79
47 -40 35 70 -79 -75 -97 78 87 24 98 -17 -46 56 -33 35 -50 -95 74 -10 -16 18 86 37 82 69 5 -54 -77 -85 71 -16 -13 3 8 17 -4 80 90 -57 94 83 83 81 -32 74 -32 45
157 42 85 48 63 23 -67 62 63 77 -8 32 -18 24 -18 54 58 50 77 78 89 82 1 -95 -71 -85 -62 -78 -35 96 81 40 30 -79 36 -13 -24 -49 53 -4 44 94 -71 49 -36 -43 52 -38 -64 21 10 26 22 -50 -75 -49 4 -15 -16 -62 66 -25 -69 3 -16 80 -11 73 -81 -82 -13 82 11 -69 -4 -81 8 -41 -59 13 90 88 -16 98 77 77 13 -70 75 -76 -76 61 -63 93 -47 -62 67 52 -57 -96 -28 71 -10 -70 46 60 -95 -44 -6 -83 84 35 -2 -81 -96 -53 68 36 73 -58 -92 -48 -89 -52 25 -52 14 32 -36 -87 27 -3 8 47 -61 30 51 -70 -46 -2 -52 76 82 9 79 -18 33 -71 37 50 62 34 -13 -60 -83 58 32 2
128 -33 96 19 -16 -33 -88 75 -63 38 37 94 47 96 -15 -67 96 -47 -7 -27 71 -67 9 -56 -87 35 -20 87 9 71 -61 -43 -59 -29 23 83 48 64 50 76 64 -4 43 69 63 -83 29 89 22 -75 -32 65 -87 86 -29 55 -44 33 -47 32 31 70 -76 27 33 -66 61 -83 22 -79 38 17 -39 58 47 0 25 -18 66 -79 -32 -60 82 -11 44 -69 46 -82 83 -68 68 -33 12 65 71 31 78 70 -5 -56 -99 70 -93 -2 97 -29 5 -19 21 -93 65 -2 59 -89 43 57 60 -4 26 30 0 -58 -31 15 68 -72 71 7 52
160 59 -5 -47 81 80 -8 44 -12 -98 30 -44 95 98 -68 17 -73 -66 -88 -18 -60 -54 24 55 82 44 -87 95 -97 68 -19 83 -15 69 33 18 83 2 -56 -60 34 62 27 -86 50 -44 98 5 82 -91 93 -3 -41 -83 28 -72 23 71 -40 22 -75 -61 85 -65 -51 82 -63 -60 82 -79 -81 -79 5 -44 96 74 23 -45 -41 53 -21 -72 -19 -82 -22 -20 -26 -36 -96 73 -43 24 -2 70 -69 55 88 -46 13 -65 2 63 -27 69 -73 38 71 -82 84 -33 -86 67 -13 -44 46 5 -57 12 -53 -4 -43 -3 54 34 -38 -18 -18 19 79 57 25 -6 83 59 55 -74 -71 19 -3 -30 55 25 7 -78 -2 -30 38 -39 9 -84 61 -47 -52 60 -15 -94 27 -45 -1 11 90
169 -51 10 -10 -34 79 84 -64 -38 91 -25 9 -6 -52 45 -43 43 -16 -53 17 -78 -51 12 57 -13 32 53 -90 -78 -20 0 91 6 -90 -37 -38 -47 70 -55 -9 35 45 -18 -5 -23 2 -61 30 -81 57 53 13 -51 51 -53 -73 5 -7 -60 -73 95 56 -98 73 28 -44 -59 -37 -84 18 74 89 -44 29 87 3 60 -40 82 -55 92 52 78 34 56 73 54 -88 82 68 -3 63 -4 58 -76 -69 63 88 -29 -81 90 17 -94 -59 -73 -84 49 76 58 19 18 -35 15 69 -2 -82 -93 -32 24 82 11 12 -91 -90 -70 39 -7 92 -70 82 -16 -29 23 6 45 -92 -46 29 -66 -10 4 41 71 73 -2 92 -23 40 83 -31 -54 -17 -72 -86 11 0 -71 57 -42 1 98 -3 -7 90 -61 -10 -13 10 -71 72
162 93 -74 6 -4 83 -70 -16 -75 19 64 96 -20 29 -88 -44 42 -68 -54 -12 -89 50 -22 -99 -47 75 41 96 -62 46 38 34 87 -27 -10 20 -11 -15 84 -50 -17 -56 -25 -90 -1 46 -89 92 -71 -3 -61 -98 45 -24 90 9 -41 82 -65 90 -72 -45 61 53 -90 0 -51 62 15 -59 7 -39 59 4 -99 24 83 91 -31 -75 -54 90 52 87 85 -74 -92 -21 -52 15 1 39 26 -8 38 28 -53 17 65 -31 4 91 -67 23 83 -11 3 -40 -2 -51 -19 77 18 24 21 4 59 -3 -79 -65 -20 -20 95 47 -90 50 0 33 94 96 -8 7 86 -5 -4 23 84 78 -35 -68 79 -99 8 -34 3 -18 47 24 98 -63 51 -88 -34 -20 71 -67 -71 35 -28 62 79 43 17
63 18 54 48 39 -48 -86 49 39 7 -83 -9 -78 -13 -28 -70 -96 -21 -94 -91 -3 -78 -83 89 86 -93 31 97 -17 26 -46 -12 51 -75 -8 89 56 87 57 51 7 -49 90 65 -37 -11 -78 -47 92 44 10 0 -37 -82 -43 42 6 -76 41 0 -36 97 6 -96
103 26 8 61 44 20 98 53 81 23 -56 -85 -29 89 -95 25 72 46 38 99 -83 -85 -34 56 -4 72 51 -45 -90 -68 -97 80 -86 59 -64 72 31 69 40 24 23 -80 18 -81 -83 7 -89 79 -79 -11 22 -4 -16 93 -36 85 -44 33 81 15 -18 18 67 -4 24 96 -28 -19 63 93 -23 -39 5 72 80 -13 -34 -1 32 5 -87 31 -11 49 -58 -96 40 18 -38 89 0 -69 -64 71 68 -67 62 83 42 93 16 48 -12 29
103 36 68 -28 96 0 17 -91 40 -72 56 24 -37 72 74 57 61 -59 47 3 71 -44 51 96 -73 -56 32 25 0 -65 41 -90 90 -16 -57 -25 -6 -80 82 -90 65 -65 58 -82 41 42 -21 -75 1 -40 77 2 61 60 -9 49 -73 -73 79 97 83 79 -66 70 -66 -5 56 34 19 57 -5 81 88 -30 -50 -8 36 -73 35 -65 -16 41 -54 -93 -21 -17 17 -91 -47 6 32 18 -4 -62 -65 18 -71 55 -66 -47 66 45 66 -53
158 -41 -47 56 -63 -44 30 -8 96 -72 20 39 82 -31 -56 -73 -28 -34 82 -50 -86 24 -20 94 34 -23 -33 30 76 -40 -89 45 -54 27 15 23 60 93 85 2 -85 -28 -4 -69 16 47 50 -35 -76 59 46 98 -85 -15 3 -69 -20 -65 -45 96 3 -59 -74 52 -51 35 -62 -4 -28 -79 -68 -41 76 -33 83 -36 -37 48 -86 -47 2 22 5 -19 -58 -4 97 45 -98 -29 72 83 25 47 -26 52 -91 44 33 -30 83 -2 58 14 96 -44 78 52 9 -83 58 76 -12 -25 59 -69 -47 -50 7 -66 18 -98 58 -60 67 44 62 37 -35 -82 -15 49 62 -14 -52 92 -18 3 55 77 -12 -14 41 6 -94 -90 -89 57 79 -29 88 -96 -14 36 -99 -78 32 38 -49
125 86 85 -74 -98 -7 -73 -10 37 -8 -51 -13 -17 78 79 -82 95 -12 -92 83 -22 49 4 -20 -82 -38 1 -64 -39 -17 -11 0 -47 7 -80 -45 53 -91 67 -38 91 -24 -49 32 -53 43 43 77 -7 -31 29 86 19 51 -69 -25 0 -44 -18 79 -25 -44 -74 -2 96 8 -41 -4 -91 51 71 91 86 37 89 -83 96 -41 29 -44 -45 94 -42 85 -82 42 92 -29 69 -74 -34 2 -13 -16 -55 -17 -59 46 48 96 -44 -8 -77 48 -37 -29 -80 11 0 -54 93 -55 50 82 0 53 0 -32 26 -70 -56 73 48 34 87 -40
175 -60 80 88 1 0 -49 -84 -87 79 43 -8 23 87 89 -79 89 -35 18 -35 20 -21 61 19 -9 -70 -97 -51 -59 1 10 44 -85 96 87 93 48 9 7 82 85 -39 96 9 1 -62 38 -8 -24 95 -96 -97 61 -49 42 -2 -36 89 -66 57 7 -51 3 -53 30 14 69 -95 3 48 -11 14 54 -16 -64 -48 -6 7 -26 -39 26 31 86 -80 53 47 42 -3 31 44 26 12 29 -34 -47 -4 9 85 -43 -55 -28 -45 19 -28 -63 -94 43 -27 -46 28 -90 66 -44 77 27 68 -48 70 -10 61 17 45 -97 -81 -27 -82 71 52 -96 34 44 79 -69 -10 38 -86 -30 -74 50 -4 -14 -83 -17 -35 40 80 48 -93 -51 -86 -45 32 -74 84 -19 -74 -17 79 -17 -98 -15 31 -20 -93 89 41 25 -6 -25 -75 -44 -47 -17 47 75 5
69 -41 30 -93 -45 10 23 -83 85 7 -34 43 62 -99 72 -70 -47 -17 8 83 -23 26 -58 97 -30 30 97 -86 40 -99 34 -21 36 65 -18 -9 42 -8 -68 69 58 -77 73 -62 19 -5 -82 -83 88 -12 93 60 38 -19 36 67 5 -43 52 42 -55 96 -39 -64 40 -51 -15 0 20 -52
166 -84 -80 -54 -82 61 87 16 39 33 -1 29 -23 -35 -55 93 20 47 96 -46 65 -80 45 69 19 54 -50 95 -84 82 -7 37 79 -72 40 -28 73 -72 -46 70 26 -56 -99 64 6 -28 -54 -18 28 -79 -77 38 63 99 -5 -29 28 69 -69 -40 -29 -66 -15 -24 1 39 82 42 -54 -10 78 84 89 -43 -91 -94 50 -4 -54 -82 93 13 -43 -49 -90 -41 -37 -48 34 -15 -77 68 -63 2 -48 26 57 -81 -60 71 -47 -80 63 -5 82 73 48 -8 59 12 48 18 -43 75 78 -52 -62 3 15 -70 -13 -61 -3 -27 -87 65 22 -31 -97 -83 -84 -75 -98 -37 97 33 -36 -7 86 45 57 -87 -10 69 -59 -41 78 61 -16 -31 26 -84 -54 -94 22 49 -44 48 -37 -75 28 8 41 66 -67 53 -29
57 -2 79 97 70 49 43 -93 69 -34 45 -96 -81 89 87 -2 55 -44 -5 -84 66 -19 18 -35 91 82 -52 4 0 -30 7 -93 -57 -8 86 -58 -73 48 -6 -30 -94 43 60 66 -77 14 -55 -1 43 -9 -28 95 -12 -60 -41 -73 -34 10
60 11 -35 31 -79 -99 12 80 42 -94 8 79 -55 38 18 -89 -29 -67 -11 -10 -60 36 -55 52 -84 -56 73 17 -86 -22 -27 -80 -41 -2 68 76 91 89 -8 73 1 -56 71 -41 31 90 78 -92 89 46 -60 73 87 -66 79 23 54 66 13 32 24
15 61 -97 -1 38 -24 -99 -95 -42 -3 49 -17 -72 92 -65 53
144 65 67 92 23 11 51 -87 19 -47 -24 -61 93 -44 18 -83 51 -28 -33 -54 -13 -60 57 8 63 -63 -6 -29 -43 91 33 51 -89 95 61 30 10 -72 15 4 -56 59 15 58 25 -76 0 -33 -80 74 -44 30 -54 -41 -9 67 90 -7 49 44 74 3 56 94 -64 -33 -53 -71 -78 -52 -68 60 -86 -98 -54 22 -91 -32 -52 98 -10 87 -68 -73 9 -72 -27 -85 55 46 14 -98 30 -42 -16 45 -8 -78 -49 -60 -40 91 -7 8 -42 -13 -64 46 13 -67 52 7 -85 28 37 -92 -17 51 66 38 -50 84 12 11 -24 -89 13 -91 58 50 11 28 22 81 -46 15 43 31 -14 -5 -37 -49 -94 -43 73
44 -33 -36 46 73 48 94 4 44 -20 -63 -12 51 -91 92 67 95 73 -53 -24 42 63 28 89 -1 97 15 86 -31 -21 -35 -16 -12 -5 38 84 -46 -17 66 -5 -55 43 11 -34 -4
30 88 -81 -81 -23 -15 94 51 24 41 -67 0 20 74 40 -61 -83 34 -68 53 -24 73 -75 65 -55 59 66 -88 -2 -12 -6
124 -42 57 35 -75 57 6 -52 -73 -57 94 -9 80 75 -43 24 98 2 -85 -79 63 -22 93 -21 -99 13 90 -63 39 81 83 45 -4 -16 87 85 10 -74 -16 8 -47 7 9 -16 5 -95 -40 43 -15 0 32 -19 -1 -27 68 47 -68 -35 -86 -65 -59 89 21 -34 0 94 64 7 -12 -76 -12 72 75 -41 2 36 -37 -46 -15 -2 -47 14 62 -79 -74 -29 -21 14 -99 -53 8 90 34 4 -45 59 -35 28 -18 26 -12 -46 -7 68 69 -43 33 55 -2 -42 -12 -22 -1 -52 -97 -76 -73 35 -57 0 32 -4 76 88 -50
101 86 62 -91 65 78 -6 -30 -20 85 28 12 -84 57 3 -39 20 58 -13 0 29 -71 -91 48 1 56 57 -97 -51 74 8 58 65 -10 22 58 84 -19 41 2 -55 -31 -24 -46 37 -9 97 -96 31 98 -61 97 -59 -8 31 -50 -47 61 -42 -76 98 -26 -38 -49 30 -30 47 49 -5 -50 54 25 32 -12 98 3 -87 -9 11 -48 -67 -65 -75 -85 74 -71 44 -59 -31 70 -60 -19 83 98 -73 -95 -41 52 -85 -78 -43 -86
53 -62 -18 -48 -43 -61 -28 -83 -29 -84 -27 96 -18 6 -59 -21 27 88 32 -61 98 77 8 -88 -1 -9 52 -67 66 98 -46 -55 18 -66 -70 -19 -25 -55 34 -83 95 -13 52 46 -15 35 -68 -24 70 10 87 -84 85 13
66 -92 -18 36 80 -82 -3 65 76 14 -62 -7 51 -78 87 17 -87 44 -92 -44 72 87 74 -11 69 -27 -21 -16 22 -92 -32 69 -60 -76 -47 28 -24 -16 60 -51 59 64 -42 -93 43 -40 81 19 -93 63 92 24 -22 36 -46 70 74 -64 14 98 -4 -65 50 60 68 -78 -91
121 50 -98 -36 81 -56 86 -8 5 66 25 10 72 21 48 -31 76 -76 -68 67 -65 79 52 45 49 41 -75 12 -43 42 80 25 -37 30 89 86 62 -71 25 -28 -84 -27 49 -42 -98 -84 70 24 48 -18 -45 -25 34 -65 -39 -21 -5 -64 91 -88 59 55 66 -1 41 -82 42 32 88 51 -86 -5 17 -24 4 -22 -79 -31 -71 -77 58 92 45 -67 70 91 -83 -74 -60 47 -12 64 -29 24 -14 -54 8 22 9 -10 -65 -39 69 -42 53 -1 -36 51 11 38 -46 18 -18 70 12 54 0 89 9 -32 52 -90
85 11 34 68 -8 -53 65 -7 -86 92 -59 -52 50 35 -27 91 2 12 -1 -25 46 21 -44 38 -29 96 -43 -81 -53 80 57 -12 -47 -42 -96 25 -64 48 93 22 -86 -42 75 33 37 28 -24 -12 50 -21 -15 19 47 15 -28 -65 85 -61 -10 -63 65 27 -21 -57 -40 98 6 3 43 33 -81 -58 -60 17 -94 40 11 50 -87 -23 -17 -84 -40 54 8 71
145 -99 63 36 23 59 77 -55 -9 -15 46 41 -45 76 -59 -20 -33 94 -97 40 -11 -34 -47 -46 -29 -93 0 94 -15 -70 38 -53 -57 -76 6 -43 11 58 -69 98 -15 1 74 90 -90 -49 -93 55 75 29 -86 74 -27 90 92 92 -3 32 27 -22 -93 -61 -90 -19 -63 79 61 -53 39 63 64 0 -41 -13 -51 1 0 -25 92 -28 -46 29 92 -55 15 -52 98 13 -29 85 -69 68 99 69 95 -20 -30 -85 33 -45 67 -70 -68 84 16 91 75 -14 -98 27 -23 -92 68 -32 -10 -14 95 4 -56 -57 -28 52 -88 -28 86 40 72 -66 -69 57 -77 43 43 20 32 62 47 59 32 -18 29 -59 -66 -86 15 24
193 37 -12 43 -40 -75 65 50 -13 54 -51 -62 92 95 -16 26 76 66 -19 96 -22 93 -28 -85 -86 -94 -91 70 88 -44 26 -4 -80 18 -67 -53 -38 -1 55 57 83 -21 49 62 -38 23 99 41 -36 -66 20 82 37 -77 85 71 29 -42 96 -34 31 27 -72 47 25 -15 99 3 18 -66 -86 79 26 67 -72 98 -2 -83 76 -19 38 -80 -23 -88 -85 51 19 -21 24 -42 -74 22 32 96 -3 40 -11 -72 36 97 -27 -86 -38 25 47 16 61 21 -43 -2 42 -16 -28 42 78 -9 70 -25 34 39 65 40 21 -4 41 -9 -39 1 14 -47 -86 -89 60 -62 -48 -26 96 40 3 31 -37 -92 41 73 72 7 56 25 -81 -90 90 7 -31 -39 18 78 60 33 -17 94 -55 18 -78 -53 -32 76 -95 -90 11 96 38 -13 77 -82 69 81 -53 -76 6 -32 -89 -87 -27 67 -51 80 63 51 -72 92 -24 1 -9 12

26 49 93 83 46 -46 86 28 54 -42 52 76 89 15 -97 -54 90 6 71 65 -65 -64 42 -24 -54 26 4
202 27 81 -61 -50 39 21 -19 85 46 -6 1 -8 99 -25 -79 -84 -45 59 -62 95 -20 -99 -58 59 51 -50 -12 66 -57 42 -49 47 -57 87 -41 -80 -32 -21 17 38 99 84 74 55 -94 51 19 -72 70 -74 -75 63 -75 -3 77 67 71 -57 -2 -99 2 -24 -59 86 -48 74 80 -2 -7 -9 -25 56 78 -95 -81 54 38 17 42 13 -45 -25 -75 -15 -41 -84 -26 -15 86 48 -71 -76 42 66 -87 81 38 13 93 -60 -84 -22 80 82 51 -74 71 17 -49 -24 -48 -47 -98 -8 5 -55 30 0 98 -3 54 -19 -89 97 -16 -57 -21 -33 -82 60 20 -86 31 -47 -97 13 67 73 74 68 -58 -18 79 -96 41 3 26 4 0 33 -36 20 85 78 -50 14 80 -40 34 -56 17 88 14 93 69 -20 12 -91 -61 93 -44 52 45 -69 -69 -34 38 11 -16 -1 97 78 -33 -32 38 54 -93 -28 74 -39 -13 16 97 52 -9 -44 -65 -97 -10 -78 49 53
182 -82 68 4 35 -13 -69 47 17 -69 -64 -26 84 2 98 -44 28 -3 39 34 -48 -13 -2 -3 24 49 79 -4 18 34 72 61 5 -12 -9 -10 9 -16 -28 78 -13 29 93 15 -28 48 39 -36 -25 37 1 -7 62 44 94 -8 48 -93 66 -52 50 77 -95 7 -21 -15 -13 -65 -71 -71 -17 94 9 -34 26 34 11 -64 43 -70 -92 97 7 -84 23 76 85 -99 -68 -23 -40 -9 57 97 21 -16 13 43 -19 -93 -56 20 86 -44 12 -13 45 17 -18 -73 71 65 -51 -25 -55 -15 92 -42 -80 79 -51 -30 82 99 -11 -71 -2 1 -91 -64 54 67 12 -90 -62 86 -79 -48 56 -18 -8 -11 62 -33 -37 19 -59 27 11 92 -33 -37 77 -86 -82 35 0 62 -2 -64 -49 99 -19 73 75 21 25 -34 -48 -73 75 -36 -97 -35 -44 62 71 -55 18 -5 6 28 -14
180 -75 -62 -74 96 34 -26 -9 -29 -77 93 -5 -19 98 -40 -65 -96 59 89 -89 -62 33 -26 45 -77 -15 78 -80 26 -21 60 86 69 -29 38 35 31 73 -67 70 81 30 -13 -30 72 83 88 -5 -47 33 25 76 -48 40 -4 -36 -4 -80 87 -56 94 -2 -69 -92 -3 -66 43 12 77 -44 -66 63 96 -4 -91 20 19 -72 -18 80 -1 78 20 39 -73 36 93 -99 29 54 -62 52 0 -39 60 38 24 28 -63 85 85 -20 -60 64 72 34 -8 47 45 -30 26 65 85 -61 85 -46 49 15 -87 70 -45 28 -44 0 53 -89 -21 24 -84 -3 37 -50 92 -87 32 -1 -95 5 63 5 -13 -8 -93 49 11 95 -80 89 -66 55 29 69 58 79 60 -21 72 27 -93 -99 53 61 -50 -56 -80 83 -50 -87 -64 51 72 -4 3 70 49 -6 -12 78 54 -5 70
193 -83 7 5 12 -72 -20 -25 52 0 -22 60 -89 -18 -4 57 -78 -77 86 85 -13 25 0 -12 -72 -29 83 44 -97 -71 19 -45 -58 71 51 10 -94 -56 52 2 -98 89 66 -56 56 94 -66 40 -88 69 18 -15 6 -9 -1 27 53 -50 -28 -49 -19 -71 25 -6 6 98 -16 38 -33 12 -13 19 -21 62 0 79 -33 5 -89 -10 14 -7 85 -49 -20 -12 70 -14 -51 2 -63 70 38 -22 -58 25 4 28 -75 -29 38 -42 -64 20 50 -62 -39 17 -71 -32 78 -59 -66 49 -48 -54 -55 -58 62 12 22 22 98 -86 31 0 43 -56 50 -42 47 76 99 0 48 -3 0 82 -52 -75 10 -41 -24 -31 4 67 89 -79 -27 -96 46 -77 -7 93 91 -57 -60 61 -34 2 -98 -35 -5 86 58 -90 93 -18 -67 -96 -53 -39 34 -83 67 -55 70 -47 -3 22 -37 17 39 -50 -61 83 86 -99 -39 -82 94 -47 -15 55
8 13 50 -39 46 -68 21 -44 -85
25 -15 -16 -87 -64 -6 58 -31 70 37 -32 1 46 -17 -20 -9 -73 4 96 -50 71 -59 -86 -98 79 -47
53 -35 -52 46 82 36 -95 53 1 -82 -2 -58 79 -41 -24 73 0 -93 -32 -78 -70 -64 -36 1 93 95 83 76 33 38 -95 45 20 16 56 -69 -38 -4 -47 30 43 91 19 94 24 -83 -95 -9 10 17 -57 -59 -85 -28
154 -80 -13 -36 75 -53 -82 -78 27 66 -46 39 -35 -57 58 -40 43 24 99 -84 -19 -25 10 37 -61 31 81 -80 61 -54 44 84 65 99 57 28 65 6 -44 20 56 70 48 -52 8 -72 61 38 90 -84 92 95 32 -3 -74 -45 -6 -71 72 -48 42 -38 -93 64 -11 -80 -47 45 98 36 -50 -56 28 71 -13 91 81 97 31 -88 -72 -21 68 63 -21 1 -1 91 -94 -13 67 65 94 99 -68 -30 -1 -30 -33 -31 -82 -75 51 20 92 -89 34 83 -5 42 -1 36 14 -68 -95 -60 -49 -9 -67 -3 65 67 50 15 26 38 28 -52 -82 -77 74 -83 41 72 -15 -30 -42 96 -18 0 -52 37 -17 82 -26 -7 62 -70 0 3 -33 -87 7 -99 83
136 5 25 -68 -83 -73 24 26 -71 -16 -20 -16 47 -88 74 5 -8 41 -47 99 -33 -62 -65 -76 -56 -41 26 -86 0 94 97 -10 -72 99 -48 -50 95 -75 -71 -51 -54 -39 3 -12 -61 -44 76 -64 86 96 55 16 -16 88 93 15 -49 -35 86 -16 -37 -2 83 -11 -73 -30 -77 85 33 57 59 27 -46 37 16 -91 97 -52 -3 32 -90 -82 -89 49 10 -54 -38 -17 -9 -34 -77 26 -96 -54 87 1 -8 17 -12 96 30 36 38 44 -93 60 88 43 -83 -24 0 -28 -28 -77 -6 82 37 69 75 1 -43 -73 -50 -96 -29 -55 -10 -55 -42 60 -70 -27 -64 -42 -4 -10 -58
44 -99 -46 59 78 -69 -64 74 -84 -93 31 10 -22 90 -16 88 -28 0 -92 78 68 24 -46 43 4 60 -90 43 26 24 57 5 4 -10 -70 -47 -48 -79 34 78 -88 4 93 78 55
87 -90 -87 -25 -52 38 89 -78 -28 30 53 59 -11 99 98 28 -60 33 33 -11 -2 -17 -1 -67 67 -55 -97 -25 0 80 -6 69 -66 -28 -3 34 -19 78 20 -82 -62 -80 35 -27 -70 -20 -42 -70 87 -41 -19 -38 -98 -70 -26 -62 -52 -93 -35 56 63 -38 49 -30 -53 -46 95 -65 19 -48 31 -36 -91 -87 -95 62 -95 58 -74 -10 75 -91 -49 36 -74 -73 47 59
51 -74 -46 63 -61 92 88 19 92 90 0 -65 39 -77 -67 38 28 28 -75 35 36 29 6 -10 3 -59 -19 12 37 -98 31 -45 -94 93 98 0 -67 95 48 -68 86 11 -21 4 -82 41 0 -56 29 19 -4 -93
13 -27 -74 91 60 -51 -86 50 -39 35 -90 50 92 -26
171 23 23 49 54 -25 25 13 -4 90 78 94 64 -91 -5 79 -21 -1 2 -38 30 -83 -35 64 48 78 -17 -93 16 -81 -92 -62 -22 26 -10 -17 4 47 36 -37 79 -25 8 -99 -30 -80 -46 -55 -90 -64 -31 92 -68 54 41 -7 83 -69 56 13 73 46 82 44 -39 61 -84 63 -34 26 0 -75 94 -60 65 98 3 -89 54 -15 31 -72 -95 88 -97 22 -33 3 -73 -94 -43 14 -58 29 48 -12 -83 -34 54 -93 79 -54 30 85 -60 78 69 -46 67 60 57 5 99 90 -26 -25 -46 7 17 -9 -87 -64 -56 -9 -42 -60 -40 96 -35 64 -10 -65 -91 -12 91 -53 -2 80 -57 -79 -19 -48 31 49 -66 -61 -76 -52 -89 -77 84 63 -8 -3 -57 -61 18 57 96 -86 21 -91 62 -54 74 -91 -32 -42 -62 84 83 -85
15 44 17 23 -52 -58 49 -14 -88 51 21 73 -53 2 -44 50
101 -25 -83 0 -13 59 36 1 -84 48 -3 16 -65 34 -89 -53 -33 -5 -88 21 -59 -98 -34 14 -56 30 34 40 24 -96 -8 -93 96 18 -22 -86 -98 -45 2 36 -64 50 77 -92 -85 93 -79 86 78 18 -4 -74 -94 -59 -12 -86 83 0 -76 57 58 15 43 -36 19 76 70 -40 -39 -89 -13 57 17 31 -55 90 -17 0 22 87 -88 83 -97 73 -90 -71 -64 9 -30 -44 47 82 98 -77 -15 50 -80 52 76 -33 58 25
142 -94 47 6 97 -45 -41 2 35 4 27 3 2 -60 94 37 75 -88 39 -71 -47 12 50 -54 -85 -91 -76 -75 89 98 -94 -5 63 -99 -4 41 40 26 31 -13 49 -47 -3 -10 85 30 -9 86 12 -34 -14 10 -23 -7 63 -60 61 -65 23 7 45 74 -20 54 -49 -99 -99 17 85 72 -87 -32 -34 -63 -45 49 27 81 -91 67 -39 97 -76 -53 21 -3 -98 -7 19 -30 -33 34 -63 67 -49 -31 -22 64 -92 60 4 82 -49 -19 -44 51 10 77 31 44 75 36 9 36 -77 89 77 55 52 11 -75 76 53 -38 40 96 -40 17 88 -13 55 80 -57 -72 42 -47 -54 -91 33 -65 16 99 -77
134 -37 1 11 10 0 63 11 -26 83 6 49 -6 63 11 -23 -99 85 -45 40 -71 77 -70 6 -21 34 73 -74 15 20 -69 -29 30 -41 28 -25 -21 -36 -62 91 -45 21 41 39 22 -59 84 47 -58 -64 -57 -68 21 -5 -54 -3 -31 27 -29 97 -89 79 -95 -11 95 -32 -53 39 -65 95 -74 -6 -42 -26 -94 4 8 -74 -86 23 -85 11 -14 16 -72 72 62 71 -66 -8 74 19 94 -82 -86 57 -33 18 -54 -73 58 -54 35 -76 87 18 20 -40 -27 -32 -2 86 2 57 -25 90 0 14 -24 95 54 51 -61 29 -47 8 -82 -57 -20 51 -61 89 -1 -8 -66
114 -25 15 -36 14 65 -97 46 -81 -61 -59 -3 38 93 56 61 -54 19 -64 97 -91 93 49 -12 38 58 -65 -32 3 53 73 -10 0 -60 0 -34 -42 -6 90 96 51 -70 -82 3 -69 -38 -49 -52 97 -73 -77 -76 -5 97 -90 43 -19 13 -52 62 -55 -49 59 2 -46 69 57 -26 -49 -46 60 37 -74 -65 -65 65 51 13 -59 -45 -77 -85 -22 -24 -79 -92 -32 65 16 -87 91 -9 -8 -15 85 44 56 -49 -34 24 93 -96 -86 59 -41 -74 -53 -98 42 -63 25 65 77 12 -39
53 28 17 -33 57 68 52 11 98 94 -80 68 -48 -9 -76 -66 -19 73 -73 -71 -25 -83 37 -45 -82 -79 -78 23 -10 53 -51 62 22 53 -94 -16 23 -7 -25 -77 19 27 -32 97 46 -53 -65 -31 -98 -19 -81 -17 -83 -18
101 26 -44 29 -5 -68 -21 -62 -26 16 7 25 -66 74 47 -43 28 -35 -38 21 -89 31 56 -40 -75 48 36 87 67 55 -65 69 -95 42 -89 -33 -65 24 56 4 59 -25 -57 -6 -1 37 89 86 94 -9 -23 53 -14 -87 -18 71 -98 29 26 54 -28 41 28 -13 47 -48 -53 -10 77 54 55 37 48 73 12 83 -72 79 64 -51 76 99 -75 -76 -29 48 -93 65 -29 -56 -1 47 93 86 -35 67 0 -89 34 -58 9 -51
83 56 78 -48 -32 6 69 55 -35 -77 -29 -89 -4 42 8 0 45 -67 -13 0 -92 5 -5 -35 -26 51 -4 10 -3 -74 -5 -22 -33 -11 49 -36 89 -66 28 -53 21 39 10 -74 60 -32 -40 -89 -12 -77 -20 -66 27 8 -5 75 -19 -5 9 -93 -58 -91 89 17 79 73 8 72 -39 -94 -16 -34 12 65 -4 -15 -41 10 36 -93 -88 -59 -73 32
52 54 -73 -38 75 86 -47 26 -35 -13 -59 76 -42 -17 92 -35 -13 -84 -82 15 -1 -43 13 -87 -26 -24 -21 40 -8 84 -57 -76 93 -2 -75 92 -77 82 86 -63 16 -15 44 -53 -24 41 -84 -85 -92 -32 73 83 -50
84 14 -4 -45 -64 70 61 72 -17 -92 77 28 -48 95 40 18 -48 95 93 -1 77 75 -20 -84 -47 -54 -79 50 -96 47 -5 -34 -65 54 -6 75 -9 13 66 -94 17 51 85 55 -57 -96 48 -15 13 -14 59 -73 65 -14 -62 -72 -50 -13 -36 82 -87 -32 -10 21 -77 -85 -49 -33 -51 -31 88 99 -59 -93 -83 -5 -38 32 -6 -15 -36 -61 79 -64 66
105 -20 50 -74 -91 -12 -85 10 36 25 -37 -59 65 27 54 -61 -40 -22 15 13 35 5 -92 7 79 -54 60 -71 -53 -84 -23 -72 96 62 49 77 44 53 17 -10 -9 97 79 85 -39 72 98 46 19 37 39 86 -28 19 61 90 -59 -36 99 5 6 -27 81 12 71 -26 -43 -21 -46 -8 60 64 -82 -35 -92 18 20 24 -7 86 90 -7 -80 -18 38 -35 15 -83 40 -64 63 -40 96 79 -40 -43 34 -4 70 -37 -92 85 20 81 -15 -64
83 -63 -70 16 -21 -39 4 -16 19 0 -97 60 41 -30 -1 -32 51 -16 -39 -67 66 -44 34 -71 30 -63 -43 -1 -58 2 20 14 -72 26 -48 71 59 -76 45 -75 -71 54 -96 -67 76 -16 21 -93 19 -20 -88 54 -56 -43 17 29 -78 86 -81 -95 38 -50 -95 98 1 -96 -16 94 57 89 59 -24 0 -7 -49 -41 1 -78 98 -44 73 -20 -14 -91
112 -10 65 57 -4 -84 91 98 -38 41 -7 32 24 69 2 53 64 80 -75 25 -58 73 13 70 33 52 -34 27 5 84 -97 65 60 14 29 61 36 0 31 -81 44 -66 65 -14 -30 28 9 -75 -90 -98 -50 65 -62 -43 88 61 21 71 -83 82 8 25 28 56 47 -58 -19 13 97 12 82 -24 92 91 64 65 86 35 -31 -58 -59 12 75 70 77 13 37 28 90 78 -45 -16 89 -82 21 87 -98 14 -47 -78 13 88 2 -19 -91 -52 82 -4 81 -23 55 57 -74
88 33 -86 -75 -77 30 -1 -58 -85 -93 83 63 -27 -63 -84 -4 -56 -84 83 49 -48 82 -95 56 -6 -35 18 98 -72 -66 4 -90 9 -54 10 69 -9 47 12 -57 40 -95 -50 50 -71 23 -76 -82 14 19 -50 78 36 -73 -81 30 -2 86 -11 -50 -40 0 91 32 -7 -26 83 -35 13 80 57 -74 16 92 94 17 -36 2 -2 7 -36 -29 14 -51 -5 23 -92 -32 -87
70 45 -97 -65 -2 -37 21 -37 -27 -79 6 22 92 -17 31 -50 41 -63 -33 -37 -62 67 -6 -72 -37 59 3 -39 -56 -67 -82 83 48 92 -81 1 -31 14 73 65 63 59 80 28 -76 66 15 15 -70 73 81 -89 -88 87 -82 25 43 15 -5 -74 -85 -31 -95 61 -15 37 -93 2 -15 -50 -5
177 0 -15 -70 -26 43 20 -34 -38 -9 75 16 -62 63 -62 11 15 40 -22 85 41 65 60 49 11 14 -21 44 -76 -30 18 -44 39 -75 68 -69 60 1 -81 71 13 58 53 49 26 -1 10 -85 97 79 -93 18 51 39 31 -45 -49 3 -85 -44 -44 1 72 10 5 -4 -9 96 73 -80 -26 -74 79 25 -27 -4 -9 4 -6 85 63 44 0 -56 72 67 -85 90 -46 -39 -64 -61 30 -93 17 -76 58 9 49 81 -74 -92 33 21 -84 -77 16 84 -96 96 12 -7 0 82 45 15 64 -87 99 24 39 79 -6 60 49 -90 -5 -64 -15 96 80 -99 14 1 8 15 -20 -34 -27 -45 -85 -22 -42 -61 -52 -26 -82 0 12 -21 -63 -72 -47 37 -44 -20 -90 -92 8 -41 -43 -24 46 -78 33 20 -31 -37 0 -32 -19 60 -30 -73 -91 -9 -7 23
15 -23 -73 23 36 45 -6 0 -51 75 66 -83 4 -49 -6 78
30 76 27 20 44 -36 -21 51 -56 -29 52 -31 25 -72 -30 74 -4 -17 29 -68 65 26 27 37 -28 -45 -95 94 -1 93 -99
21 -92 23 -99 7 65 68 -41 27 26 82 10 -29 50 41 -38 -58 -57 8 84 -1 55
119 -93 31 7 -34 20 -23 -26 91 -98 -36 -10 -28 -13 91 98 -80 -41 52 30 79 -80 3 85 -14 58 23 -21 0 -89 23 18 -70 42 -48 72 0 -14 -68 -52 -22 -35 46 2 -81 24 76 50 -99 24 -83 -99 -98 -16 23 -91 18 -40 -68 -66 -94 -10 -66 -50 -75 83 50 0 -20 -44 -62 -14 11 90 -13 -42 -7 -7 -69 -58 -44 -55 72 83 55 63 -75 56 -59 69 34 -17 -33 -82 -26 -1 -4 75 -97 -43 6 -5 18 38 -93 -1 10 62 63 37 0 92 -26 -85 -70 30 85 -42 -33 33
98 -9 46 -14 24 -92 5 -83 14 67 -32 -71 -59 -57 -70 80 -29 -38 -74 -39 92 -9 -69 -82 -42 -15 4 -90 -97 -38 51 -25 57 -51 -20 -46 -55 29 -81 44 10 0 81 -31 -38 11 -84 -3 -88 2 39 -47 20 -68 89 -59 99 -90 64 -50 -25 54 13 93 -25 41 43 -38 36 38 -32 -98 -61 53 -45 19 43 -49 -37 55 -5 -54 5 99 90 -19 -39 -12 -59 53 71 -22 -52 38 85 0 -79 87 -49
27 20 93 -92 75 -30 -43 -96 63 66 99 -78 -56 58 -29 6 5 -91 37 -57 -91 12 -4 68 -82 79 97 -97
0
``````
AC output:

Code: Select all

``````Case 1:
0
Case 2:
50
- 8--
79
Case 3:
167
2---
202
Case 4:
29
- 2--
98
Case 5:
17
- 9--
49
Case 6:
23
--
74
Case 7:
59
- 4---
153
Case 8:
6
19--
11
Case 9:
5
- 2---
136
Case 10:
11
- 4--
28
Case 11:
59
7---
155
Case 12:
10
- --
89
Case 13:
1
- --
57
Case 14:
3
23-
5
Case 15:
7
4--
83
Case 16:
14
- 4--
79
Case 17:
16
- 13--
35
Case 18:
69
- 1---
112
Case 19:
5
8--
18
Case 20:
17
- 3--
64
Case 21:
77
2--
94
Case 22:
43
- 5--
70
Case 23:
92
- 1---
177
Case 24:
15
- 10--
17
Case 25:
3
4-
5
Case 26:
17
5--
21
Case 27:
7
- 2--
19
Case 28:
32
- 1--
81
Case 29:
2
- 3--
77
Case 30:
37
- 5---
138
Case 31:
51
- 15--
61
Case 32:
5
14-
7
Case 33:
7
- 20--
22
Case 34:
19
--
20
Case 35:
109
5---
114
Case 36:
44
13--
47
Case 37:
154
---
157
Case 38:
75
8---
128
Case 39:
159
- ---
160
Case 40:
126
---
169
Case 41:
37
3---
162
Case 42:
61
- 3--
63
Case 43:
35
9---
103
Case 44:
62
3---
103
Case 45:
141
- ---
158
Case 46:
34
1---
125
Case 47:
29
- --
35
Case 48:
2
Case 49:
73
- 2--
83
Case 50:
10
--
19
Case 51:
47
5--
60
Case 52:
4
- 14-
5
Case 53:
55
- 3--
72
Case 54:
31
16--
44
Case 55:
11
1--
30
Case 56:
83
- ---
124
Case 57:
35
- 1---
101
Case 58:
25
- 4--
53
Case 59:
29
2--
33
Case 60:
20
4---
121
Case 61:
1
- -
5
Case 62:
89
2---
145
Case 63:
51
5---
193
Case 64:
9
20--
26
Case 65:
13
2---
101
Case 66:
125
1---
182
Case 67:
13
7--
30
Case 68:
113
- 3---
193
Case 69:
1
- 13-
4
Case 70:
23
- 9--
25
Case 71:
18
- 3--
53
Case 72:
13
3--
14
Case 73:
27
- 7---
136
Case 74:
29
2--
44
Case 75:
59
- 13--
87
Case 76:
7
2--
51
Case 77:
2
- 1--
13
Case 78:
31
- 3--
57
Case 79:
2
1-
5
Case 80:
44
- 6---
101
Case 81:
40
2--
71
Case 82:
38
- 2--
67
Case 83:
26
- 6--
57
Case 84:
33
- 11--
53
Case 85:
99
5---
101
Case 86:
16
- 9--
83
Case 87:
25
- 6--
26
Case 88:
13
- 4--
84
Case 89:
89
7---
105
Case 90:
36
- 11--
83
Case 91:
101
15---
112
Case 92:
71
- 8--
88
Case 93:
17
- 6--
70
Case 94:
104
- 2---
177
Case 95:
2
2-
5
Case 96:
3
3-
5
Case 97:
5
6--
21
Case 98:
5
- 8---
119
Case 99:
17
- 8--
98
Case 100:
14
- 2--
27
``````

ok_tested
New poster
Posts: 1
Joined: Wed Sep 24, 2014 10:18 pm

### Re: 12060 - All Integer Average

Below is my code,it is showing correct result,still verdict comes out to be Presentation error! please take a look,where i am doing wrong.
#include<iostream>
#include<stdio.h>
#include<string.h>
#include <sstream>
#include<stdlib.h>
int numPlaces(int);
using namespace std;
int main()
{ long long e=0,s=0,g=1;
// int i,j,k,o,m,n,x,y,z,h,n;
long long i,j,n,t,x;

while(1)
{ cin>>n;
if(n==0)
break;
s=0;
t=n;
int f=0;
while(t)
{
t--;
cin>>x;
s= s + x;
}
cout<<"Case "<<g<<":"<<endl;
g++;
int q= s/n;
//cout<<" q is :"<<q<<endl;
int r= s%n;
if(r<0 && q==0)
{
r= -1*r;
f++;
}
else if(r<0)
r= -1*r;

if(r!=0)
{
if(f==1)
cout<<" ";
int y=r;
for(i=2;i<=y;)
{
if(r%i==0 && n%i==0)
{

r=r/i; n= n/i;

continue;

// cout<<"fault is here- r is :"<<r<<" "<<"n is :"<<n<<endl;
//cout<<r<<" "<<n<<endl;

} i++;

// cout<<" i is :"<<i<<endl;
}
}
// cout<<"r is : "<<r<<endl;
// cout<<"n is :"<<n<<endl;

// string R,N,Q;
int rlen,qlen,nlen;
rlen=numPlaces(r);
int q1=q;
if(q1<0)
q1= -1 *q1;
qlen=numPlaces(q1);
// cout<<" qlen is : "<<qlen<<endl;
nlen=numPlaces(n);
// cout<<"q is :"<<q<<endl;

// ostringstream convert;
// convert<<r;
// R=r;
// cout<<"R is : "<<(int)R[0]<<(int)R[1]<<endl;
// Q=q;
// N=n;
//cout<<(int)Q[0];
// rlen=R.length();

// cout<<"qlen is :"<<q<<" "<<qlen<<endl;
// qlen=Q.length();
// nlen=N.length();
if(r!=0)
{
string a,b,c;
if(q!=0)
{
for(i=0;i<qlen;i++)
{
b=' ';
cout<<b;

}
}
if(q<0)
cout<<" ";
for(i=0;i<nlen-rlen;i++)
cout<<" ";

cout<<r<<endl;
if(q<0)
{ e++;
// q=-1*q;
cout<<"- "<<q1;;
}
else if(q>0)
cout<<q;
else if(q==0 && f==1)
cout<<"- ";
for(i=0;i<nlen;i++)
{
b='-';
cout<<b;
}
cout<<endl;
if(q!=0)
{

for(i=0;i<qlen;i++)
{
b=' ';
cout<<b;
}
}
if(q==0 && f==1 || q<0)
cout<<" ";
// if()
// cout<<" ";
cout<<n<<endl;
}
else
cout<<q<<endl;
}

//cout<<q<<" "<<r<< " "<<n<<endl;
return 0;
}

int numPlaces (int n) {
//if (n < 0) n = (n == MININT) ? MAXINT : -n;
if (n < 10) return 1;
if (n < 100) return 2;
if (n < 1000) return 3;
if (n < 10000) return 4;
if (n < 100000) return 5;
if (n < 1000000) return 6;
if (n < 10000000) return 7;
if (n < 100000000) return 8;
if (n < 1000000000) return 9;
/* 2147483647 is 2^31-1 - add more ifs as needed
and adjust this final return as well. */
return 10;
}

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 12060 - All Integer Average

Look at case 2 of the sample output, your code is missing a space.
Check input and AC output for thousands of problems on uDebug!

pakosh
New poster
Posts: 3
Joined: Wed Oct 29, 2014 2:09 am

### Re: 12060 - All Integer Average

Hello guys, I have compared sample output + 100 test cases from this thread and I have same output. Im getting WA.
Here is the code

Code: Select all

``code removed``
Thanks for any help!

EDIT: This helped:
INPUT:

Code: Select all

``````5  100  245  245  410  417
3  1  2  3
4  2  4  6  10
3  -1  -2  -3
2  1  -1
0``````
OUTPUT:

Code: Select all

``````Case 1:
2
283-
5
Case 2:
2
Case 3:
1
5-
2
Case 4:
- 2
Case 5:
0``````