buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
for a in range(1,10):
for b in range(1,10):
i = a * b
print((a,"x",b,"=",i))
| for a in range(1,10):
for b in range(1,10):
i = a * b
print(a,"x",b,"=",i,sep="")
| [["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 43 | 7 |
for i in range(1,10):
for j in range(1,10):
print(str(i),"x", str(j),"=", str(i*j))
| for i in range(1,10):
for j in range(1,10):
print(str(i)+"x"+str(j)+"="+str(i*j))
| [["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 657, 31, 657, 31, 657, 31, 657, 17, 72], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72]] | 5 | 47 | 8 |
for i in range(1, 10):
for j in range(1, 10):
print(str(i)+'×'+str(j)+'='+str(i*j))
exit()
| for i in range(1, 10):
for j in range(1, 10):
print(str(i)+'x'+str(j)+'='+str(i*j))
exit()
| [["-", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 50 | 2 |
# Vol0000.
import sys
def main():
for i in range(9):
for k in range(9):
print(str(i) + "x" + str(k) + "=" + str(i * k))
if __name__ == "__main__":
main()
| # Vol0000.
import sys
def main():
for i in range(1, 10):
for k in range(1, 10):
print(str(i) + "x" + str(k) + "=" + str(i * k))
if __name__ == "__main__":
main()
| [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 61 | 8 |
for i in range(1,10):
for j in range(1,10):
print(i,"x",j,"=",i*j,)
| for i in range(1,10):
for j in range(1,10):
print(i,"x",j,"=",i*j,sep="")
| [["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 39 | 4 |
print(*[''.join(str(i)+'x'+str(j)+'='+str(i*j)) for j in range(1,10) for i in range(1,10)], sep='\n')
| print(*[''.join(str(i)+'x'+str(j)+'='+str(i*j)) for i in range(1,10) for j in range(1,10)], sep='\n')
| [["-", 3, 4, 0, 661, 0, 658, 0, 659, 31, 22], ["+", 3, 4, 0, 661, 0, 658, 0, 659, 31, 22]] | 5 | 60 | 10 |
x = 0
y = 0
for i in range(1,10):
x += 1
y = 0
for j in range(1,10):
y += 1
print("{}×{}={}".format(x,y,x*y))
| x = 0
y = 0
for i in range(1,10):
x += 1
y = 0
for j in range(1,10):
y += 1
print("{}x{}={}".format(x,y,x*y))
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 52 | 2 |
[[print("{}+{}={}".format(i,j,i*j))for j in range(1,10)]for i in range(1,10)]
| [[print("{}x{}={}".format(i,j,i*j))for j in range(1,10)]for i in range(1,10)]
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 39 | 2 |
def kuku():
for x in range(1,10):
for y in range(1,10):
print((str(x) + '*' + str(y) + '=' + str(x*y)))
if __name__ == '__main__':
kuku() | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: sato
#
# Created: 19/10/2013
# Copyright: (c) sato 2013
# Licence: <your licence>
#-------------------------------------------------------------------------------
def kuku():
... | [["-", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 64 | 2 |
for x in range(9):
for y in range(9):
print(str(x + 1) + "*" + str(y + 1) + "=" + str((x + 1) * (y + 1))) | for x in range(9):
for y in range(9):
print(str(x + 1) + "x" + str(y + 1) + "=" + str((x + 1) * (y + 1))) | [["-", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 55 | 2 |
for i in range(10):
for j in range(10):
print("%dx%d=%d" % (i, j, i*j)) | #coding: UTF-8
for i in range(1, 10):
for j in range(1, 10):
print("%dx%d=%d" % (i, j, i*j)) | [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 32 | 4 |
x = list(range(1,10))
for i in x:
for j in x:
print("%d+%d=%d"%(i, j, i*j)) | x = list(range(1,10))
for i in x:
for j in x:
print("%dx%d=%d"%(i, j, i*j)) | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 37 | 2 |
#include <stdio.h>
int main(void) {
int a;
int fir = 0, sec = 0, thi = 0;
int i;
for (i = 0; i < 10; i++) {
scanf("%d", &a);
if (a >= fir) {
thi = sec;
sec = thi;
fir = a;
} else if (a >= sec) {
thi = sec;
sec = a;
} else if (a >= thi) {
thi = a;
}
}
... | #include <stdio.h>
int main(void) {
int a;
int fir = 0, sec = 0, thi = 0;
int i;
for (i = 0; i < 10; i++) {
scanf("%d", &a);
if (a >= fir) {
thi = sec;
sec = fir;
fir = a;
} else if (a >= sec) {
thi = sec;
sec = a;
} else if (a >= thi) {
thi = a;
}
}
... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 0 | 124 | 2 |
#include <stdio.h>
int main(void) {
int tall[10];
int a, b, c, i;
a = 0;
b = 0;
c = 0;
for (i = 0; i <= 954; i++) {
scanf("%d", &tall[i]);
if (a <= tall[i]) {
c = b;
b = a;
a = tall[i];
} else if (b <= tall[i]) {
c = b;
b = tall[i];
} else if (c <= tall[i]) {
... | #include <stdio.h>
int main(void) {
int tall[10];
int a, b, c, i;
a = 0;
b = 0;
c = 0;
for (i = 0; i <= 9; i++) {
scanf("%d", &tall[i]);
if (a <= tall[i]) {
c = b;
b = a;
a = tall[i];
} else if (b <= tall[i]) {
c = b;
b = tall[i];
} else if (c <= tall[i]) {
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 153 | 2 |
#include <stdio.h>
int main(void) {
int a[10], i, top1 = 0, top2 = 0, top3 = 0;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
if (a[i] > top1) {
top3 = top2;
top2 = top1;
top1 = a[i];
} else if (top1 > a[i] && a[i] > top2) {
top3 = top2;
top2 = a[i];
} else if (top2 > ... | #include <stdio.h>
int main(void) {
int a[10], i, top1 = 0, top2 = 0, top3 = 0;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
if (a[i] > top1) {
top3 = top2;
top2 = top1;
top1 = a[i];
} else if (top1 >= a[i] && a[i] >= top2) {
top3 = top2;
top2 = a[i];
} else if (top2 ... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]] | 0 | 162 | 6 |
#include <stdio.h>
int main(void) {
int a[10], i, j, tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 9; i++) {
for (j = 9; j > i; j--) {
if (a[j - 1] < a[j]) {
tmp = a[j];
a[j] = a[j - 1];
a[j - 1] = tmp;
}
}
}
for (i = 0; i < 3; i++) {
... | #include <stdio.h>
int main(void) {
int a[10], i, j, tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 9; i++) {
for (j = 9; j > i; j--) {
if (a[j - 1] < a[j]) {
tmp = a[j];
a[j] = a[j - 1];
a[j - 1] = tmp;
}
}
}
for (i = 0; i < 3; i++) {
... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 150 | 1 |
#include <stdio.h>
typedef unsigned char U1;
typedef int S4;
#define NUM_MOUNTAINS (10)
#define INVALID_DATA (-1)
#define NUM_OUTPUTS (3)
S4 main() {
S4 s4_t_i; /* loop counter */
S4 s4_t_j; /* loop counter */
S4 s4_tp_height[NUM_MOUNTAINS];
U1 u1_t_delimiter;
S4 s4_t_tmp; /* temp variable for sort */
/... | #include <stdio.h>
typedef unsigned char U1;
typedef int S4;
#define NUM_MOUNTAINS (10)
#define INVALID_DATA (-1)
#define NUM_OUTPUTS (3)
S4 main() {
S4 s4_t_i; /* loop counter */
S4 s4_t_j; /* loop counter */
S4 s4_tp_height[NUM_MOUNTAINS];
U1 u1_t_delimiter;
S4 s4_t_tmp; /* temp variable for sort */
/... | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 0, 7, 15, 16, 12, 16, 12, 74, 0, 24], ["+", 15, 16, 12, 16, 12, 74, 39, 77, 39, 78], ["+", 0, 7, 15, 16, 12, 16, 12, 74, 0, 25], ["+", 0, 7, 15, 16, 12, 16, 12, 74, 51, 13]] | 0 | 254 | 5 |
#include <stdio.h>
void get_f(int top[], int height);
void get_s(int top[], int height);
int main(void) {
int i, height[10];
int top[3] = {0, 0, 0};
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < 10; i++) {
if (top[0] < height[i])
get_f(top, height[i]);
else if (top[... | #include <stdio.h>
void get_f(int top[], int height);
void get_s(int top[], int height);
int main(void) {
int i, height[10];
int top[3] = {0, 0, 0};
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < 10; i++) {
if (top[0] < height[i])
get_f(top, height[i]);
else if (top[... | [["-", 75, 76, 0, 57, 64, 1, 0, 2, 63, 22], ["+", 75, 76, 0, 57, 64, 1, 0, 2, 63, 22]] | 0 | 265 | 2 |
#include <stdio.h>
void noone(int[10]);
int main(void) {
int mt[10];
int i = 0;
for (i = 0; i < 10; i++) {
scanf("%d", &mt[i]); // 10個の配列に数値を入れる
}
noone(mt); //一番大きい値を決める
}
void noone(int hai[10]) {
int i = 0;
int max = 0;
int max2 = 0;
int max3 = 0;
hai[0] = max;
for (i = 0; i < 10; i+... | #include <stdio.h>
void noone(int[10]);
int main(void) {
int mt[10];
int i = 0;
for (i = 0; i < 10; i++) {
scanf("%d", &mt[i]); // 10個の配列に数値を入れる
}
noone(mt); //一番大きい値を決める
}
void noone(int hai[10]) {
int i = 0;
int max = 0;
int max2 = 0;
int max3 = 0;
max = hai[0];
for (i = 1; i < 10; i+... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 203 | 6 |
#include <stdio.h>
int main(void) {
int a[11], i, j, tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 10; i++) {
for (j = 1; j < 10; j++) {
if (a[i] > a[j]) {
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
for (i = 0; i < 3; i++) {
prin... | #include <stdio.h>
int main(void) {
int a[11], i, j, tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 10; i++) {
for (j = i + 1; j < 10; j++) {
if (a[i] > a[j]) {
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
for (i = 0; i < 3; i++) {
... | [["+", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]] | 0 | 148 | 4 |
#include <stdio.h>
int main() {
int mount[10], i, j, l;
for (i = 0; i < 10; i++) {
scanf("%d", &mount[i]);
}
for (i = 0; i < 3; i++) {
for (j = i + 1; j < 10; j++) {
if (mount[i] < mount[j]) {
l = mount[i];
mount[i] = mount[j];
mount[j] = mount[i];
}
}
}
for... | #include <stdio.h>
int main() {
int mount[10], i, j, l;
for (i = 0; i < 10; i++) {
scanf("%d", &mount[i]);
}
for (i = 0; i < 3; i++) {
for (j = i + 1; j < 10; j++) {
if (mount[i] < mount[j]) {
l = mount[i];
mount[i] = mount[j];
mount[j] = l;
}
}
}
for (i = 0... | [["-", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 69, 0, 70], ["-", 64, 9, 0, 1, 0, 11, 12, 69, 71, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 69, 0, 73], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 0 | 150 | 5 |
a[10];
f(int *a, int *b) { return *b - *a; }
main(i) {
for (; ~scanf("%d", &a[i++]);)
;
qsort(a, 10, 4, f);
printf("%d\n%d\n%d\n", *a, a[1], a[2]);
return 0;
} | a[10];
f(int *a, int *b) { return *b - *a; }
main(i) {
for (; ~scanf("%d", &a[i++]); qsort(a, 11, 4, f))
;
printf("%d\n%d\n%d\n", *a, a[1], a[2]);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 7, 0, 25], ["-", 0, 14, 8, 9, 0, 7, 8, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 7, 26, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 7, 26, 2, 3, 4, 0, 25]] | 0 | 90 | 5 |
#include <stdio.h>
int main(void) {
int height[10];
int i, j;
int tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < 9; i++) {
for (j = i; j < 9; j++) {
if (height[i] <= height[j]) {
tmp = height[i];
height[i] = height[j];
height[j] = tmp;
... | #include <stdio.h>
int main(void) {
int height[10];
int i, j;
int tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < 9; i++) {
for (j = i; j <= 9; j++) {
if (height[i] <= height[j]) {
tmp = height[i];
height[i] = height[j];
height[j] = tmp;
... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 150 | 2 |
#include <stdio.h>
int main(void) {
int f, j, a[10], i;
f = 0;
j = 0;
a[10] = 0;
i = 0;
for (f = 0; f < 10; f++) {
scanf("%d", &a[f]);
}
for (f = 0; f < 9; f++) {
for (j = f + 1; j < 10; j++) {
if (a[f] < a[j]) {
i = a[f];
a[f] = a[j];
a[j] = i;
}
}
}
... | #include <stdio.h>
int main(void) {
int f, j, a[10], i;
f = 0;
j = 0;
a[9] = 0;
i = 0;
for (f = 0; f < 10; f++) {
scanf("%d", &a[f]);
}
for (f = 0; f < 9; f++) {
for (j = f + 1; j < 10; j++) {
if (a[f] < a[j]) {
i = a[f];
a[f] = a[j];
a[j] = i;
}
}
}
... | [["-", 8, 9, 0, 1, 0, 11, 31, 69, 71, 13], ["+", 8, 9, 0, 1, 0, 11, 31, 69, 71, 13]] | 0 | 168 | 2 |
#include <stdio.h>
main() {
int i, h, k;
int height[5] = {0, 0, 0, 0};
for (i = 0; i < 10; i++) {
scanf("%d", &h);
for (k = 0; k < 3; k++) {
if (height[k] <= h) {
height[k + 2] = height[k + 1];
height[k + 1] = height[k];
height[k] = h;
break;
}
}
}
prin... | #include <stdio.h>
main() {
int i, h, k;
int height[5] = {0, 0, 0, 0};
for (i = 0; i < 10; i++) {
scanf("%d", &h);
for (k = 0; k < 3; k++) {
if (height[k] <= h) {
height[k + 2] = height[k + 1];
height[k + 1] = height[k];
height[k] = h;
break;
}
}
}
prin... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 142 | 7 |
#include <stdio.h>
int main(void) {
int i;
int h[10];
int pri, swapC;
for (i = 0; i < 10; i++)
scanf("%d", &h[i]);
while (swapC > 0) {
swapC = 0;
for (i = 0; i < 9; i++)
if (h[i] < h[i + 1]) {
swapC++;
pri = h[i];
h[i] = h[i + 1];
h[i + 1] = pri;
}
}... | #include <stdio.h>
int main(void) {
int i;
int h[10];
int pri, swapC = 1;
for (i = 0; i < 10; i++)
scanf("%d", &h[i]);
while (swapC != 0) {
swapC = 0;
for (i = 0; i < 9; i++)
if (h[i] < h[i + 1]) {
swapC++;
pri = h[i];
h[i] = h[i + 1];
h[i + 1] = pri;
... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 79]] | 0 | 150 | 4 |
#include <stdio.h>
int main(void) {
int data[9];
int i, m, temp;
for (i = 0; i <= 9; i++) {
scanf("%d", &data[i]);
}
for (i = 0; i <= 9 - 1; i++) {
for (m = 9 - 1; m > i; m--) {
if (data[m - 1] < data[m]) {
temp = data[m - 1];
data[m - 1] = data[m];
data[m] = temp;
... | #include <stdio.h>
int main(void) {
int data[10];
int i, m, temp;
for (i = 0; i <= 9; i++) {
scanf("%d", &data[i]);
}
for (i = 0; i <= 10 - 1; i++) {
for (m = 10 - 1; m > i; m--) {
if (data[m - 1] < data[m]) {
temp = data[m - 1];
data[m - 1] = data[m];
data[m] = temp;
... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 31, 13]] | 0 | 159 | 6 |
#include <stdio.h>
int main() {
int mount[11];
int i, j, k, key;
for (i = 1; i <= 10; i++) {
scanf("%d", &mount[i]);
}
for (j = 1; j <= 10; j++) {
key = mount[j];
i = j - 1;
while (i >= 0 && mount[i] < key) {
mount[i + 1] = mount[i];
i--;
}
mount[i + 1] = key;
}
/*pr... | #include <stdio.h>
int main() {
int mount[11];
int i, j, k, key;
for (i = 1; i <= 10; i++) {
scanf("%d", &mount[i]);
}
for (j = 1; j <= 10; j++) {
key = mount[j];
i = j - 1;
while (i > 0 && mount[i] < key) {
mount[i + 1] = mount[i];
i--;
}
mount[i + 1] = key;
}
/*pri... | [["-", 0, 52, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 23, 0, 16, 31, 16, 17, 47]] | 0 | 150 | 2 |
#include <stdio.h>
int main(int argc, char *argv[]) {
int i, j, temp, height[10];
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 10; 0 < i; i--) {
for (j = 0; j < i; j++) {
if (height[j + 1] < height[j]) {
temp = height[j];
height[j] = height[j + 1];
heig... | #include <stdio.h>
int main(int argc, char *argv[]) {
int i, j, temp, height[10];
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 9; 0 < i; i--) {
for (j = 0; j < i; j++) {
if (height[j + 1] < height[j]) {
temp = height[j];
height[j] = height[j + 1];
heigh... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 31, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, ... | 0 | 161 | 10 |
#include <stdio.h>
int main(void) {
int a[10];
int z = 0, y = 0, x = 0;
int i;
for (i = 1; i <= 10; i++) {
scanf("%d", &a[i]);
if (x < a[i]) {
z = y;
y = x;
x = a[i];
} else if (y < a[i]) {
z = y;
y = a[i];
} else if (z < a[i]) {
z = a[i];
}
}
printf("... | #include <stdio.h>
int main(void) {
int a[11];
int z = 0, y = 0, x = 0;
int i;
for (i = 1; i <= 10; i++) {
scanf("%d", &a[i]);
if (x < a[i]) {
z = y;
y = x;
x = a[i];
} else if (y < a[i]) {
z = y;
y = a[i];
} else if (z < a[i]) {
z = a[i];
}
}
printf("... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]] | 0 | 148 | 2 |
#include <stdio.h>
int main() {
int x[10], i, j, a;
for (i = 0; i < 10; i++) {
scanf("%d", &x[i]);
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
if (x[i] < x[j]) {
a = x[i];
x[i] = x[j];
x[j] = a;
}
}
}
for (i = 0; i < 3; i++) {
printf("%d\n", x[... | #include <stdio.h>
int main() {
int x[10], i, j, a;
for (i = 0; i < 10; i++) {
scanf("%d", &x[i]);
}
for (i = 0; i < 10; i++) {
for (j = i; j < 10; j++) {
if (x[i] < x[j]) {
a = x[i];
x[i] = x[j];
x[j] = a;
}
}
}
for (i = 0; i < 3; i++) {
printf("%d\n", x[... | [["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 22]] | 0 | 147 | 2 |
#include <stdio.h>
int main(void) {
int most1 = 0, most2 = 0, most3 = 0, a[10], i;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
if (most1 < a[i]) {
most3 = most2;
most2 = most1;
most1 = a[i];
} else if (most2 < a[i] && most1 > a[i]) {
most3 = most2;
most2 = a[i];
} e... | #include <stdio.h>
int main(void) {
int most1 = 0, most2 = 0, most3 = 0, a[10], i;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
if (most1 <= a[i]) {
most3 = most2;
most2 = most1;
most1 = a[i];
} else if (most2 <= a[i] && most1 >= a[i]) {
most3 = most2;
most2 = a[i];
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 18], ["+", 1... | 0 | 167 | 12 |
#include <stdio.h>
void swap(int *x, int *y) {
*x = *x ^ *y;
*y = *x ^ *y;
*x = *x ^ *y;
}
void bsort(int list[10]) {
int needAgain = 0;
int i;
do {
needAgain = 0;
for (i = 0; i < 8; i++) {
if (list[i] < list[i + 1]) {
swap(&list[i], &list[i + 1]);
needAgain = 1;
}
... | #include <stdio.h>
void swap(int *x, int *y) {
*x = *x ^ *y;
*y = *x ^ *y;
*x = *x ^ *y;
}
void bsort(int list[10]) {
int needAgain = 0;
int i;
do {
needAgain = 0;
for (i = 0; i <= 8; i++) {
if (list[i] < list[i + 1]) {
swap(&list[i], &list[i + 1]);
needAgain = 1;
}
... | [["-", 0, 82, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 82, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 204 | 2 |
#include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b) { return *(int *)a - *(int *)b; }
main() {
int data[10];
int i = 10;
while (i--)
scanf("%d", &data[i]);
qsort(data, 10, sizeof(int), compare_int);
for (i = 0; i < 10; i++) {
printf("%d\n", data[i]);
}
return 0... | #include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b) { return *(int *)b - *(int *)a; }
main() {
int data[10];
int i = 10;
while (i--)
scanf("%d", &data[i]);
qsort(data, 10, sizeof(int), compare_int);
for (i = 0; i < 3; i++) {
printf("%d\n", data[i]);
}
return 0;... | [["-", 0, 37, 0, 16, 31, 66, 28, 74, 51, 22], ["+", 0, 37, 0, 16, 31, 66, 28, 74, 51, 22], ["-", 0, 37, 0, 16, 12, 66, 28, 74, 51, 22], ["+", 0, 37, 0, 16, 12, 66, 28, 74, 51, 22], ["-", 0, 30, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 30, 0, 9, 0, 7, 15, 16, 12, 13]] | 0 | 114 | 6 |
#include <stdio.h>
#define N 10
int main() {
int i, j, n[N], min, temp;
for (i = 0; i < N; i++) {
printf("\n");
scanf("%d", &n[i]);
}
for (i = 0; i < N; i++) {
min = i;
for (j = i + 1; j < N; j++) {
if (n[j] < n[min]) {
min = j;
}
}
temp = n[min];
n[min] = n[i]... | #include <stdio.h>
#define N 10
int main() {
int i, j, n[N], min, temp;
for (i = 0; i < N; i++) {
printf("");
scanf("%d", &n[i]);
}
for (i = 0; i < N; i++) {
min = i;
for (j = i + 1; j < N; j++) {
if (n[j] < n[min]) {
min = j;
}
}
temp = n[min];
n[min] = n[i];
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 172 | 2 |
#include <stdio.h>
int main() {
int yama[10];
int i, j, dumy;
for (i = 0; i < 10; i++) {
scanf("%d", &yama[i]);
}
for (i = 0; i < 5; i++) {
for (j = i + 1; j < 5; j++) {
if (yama[i] < yama[j]) {
dumy = yama[i];
yama[i] = yama[j];
yama[j] = dumy;
}
}
}
pr... | #include <stdio.h>
int main() {
int yama[10];
int i, j, dumy;
for (i = 0; i < 10; i++) {
scanf("%d", &yama[i]);
}
for (i = 0; i < 9; i++) {
for (j = i + 1; j < 10; j++) {
if (yama[i] < yama[j]) {
dumy = yama[i];
yama[i] = yama[j];
yama[j] = dumy;
}
}
}
p... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 161 | 4 |
#include <stdio.h>
int main() {
int height[10], i, j, n, temp;
for (i = 0; i < 10; i += 1) {
scanf("%d", &height[i]);
};
for (n = 0; n < i - 1; n += 1) {
for (j = i - 1; j > n; j -= 1) {
if (height[i - 1] < height[i]) {
temp = height[i - 1];
height[i - 1] = height[i];
he... | #include <stdio.h>
int main() {
int height[10], i, j, n, temp;
for (i = 0; i < 10; i += 1) {
scanf("%d", &height[i]);
};
for (n = 0; n < i - 1; n += 1) {
for (j = i - 1; j > n; j -= 1) {
if (height[j - 1] < height[j]) {
temp = height[j - 1];
height[j - 1] = height[j];
he... | [["-", 15, 23, 0, 16, 31, 69, 71, 16, 31, 22], ["+", 15, 23, 0, 16, 31, 69, 71, 16, 31, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 69, 71, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 69, 71, 22], ["-", 0, 1, 0, 11, 12, 69, 71, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 69, 71, 16, 31, 22], ["-", 0, 1, 0, 11, 31, 69, 71, 16, 31, 22], ["+",... | 0 | 168 | 12 |
#include <math.h>
#include <stdio.h>
int main(void) {
int i, j;
int ar[10];
int temp;
for (i = 0; i < 10; i++) {
scanf("%d", &ar[i]);
}
for (i = 9; i < 7; i--) {
for (j = 0; j < i; j++) {
if (ar[j] > ar[j + 1]) {
temp = ar[j];
ar[j] = ar[j + 1];
ar[j + 1] = temp;
... | #include <math.h>
#include <stdio.h>
int main(void) {
int i, j;
int ar[10];
int temp;
for (i = 0; i < 10; i++) {
scanf("%d", &ar[i]);
}
// printf("\n%d\n", ar[9]);
for (i = 9; i > 6; i--) {
for (j = 0; j < i; j++) {
if (ar[j] > ar[j + 1]) {
temp = ar[j];
ar[j] = ar[j + 1]... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 158 | 8 |
#include <stdio.h>
int main() {
int i, j, height[10], tmp;
for (i = 0; i < 10; i++) {
scanf("%d", height[i]);
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 9; j++) {
if (height[j] < height[j + 1]) {
tmp = height[j + 1];
height[j + 1] = height[j];
height[j] = tmp;
}
... | #include <stdio.h>
int main() {
int i, j, height[10], tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 9; j++) {
if (height[j] <= height[j + 1]) {
tmp = height[j + 1];
height[j + 1] = height[j];
height[j] = tmp;
}
... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 151 | 4 |
#include <stdio.h>
int main(void) {
int a, b, c, i, j;
int array[10];
for (i = 0; i < 10; i++) {
scanf("%d", &array[i]);
}
for (i = 0; i < 9; i++) {
for (j = 0; j + i == 8; j++) {
if (array[j] > array[j + 1]) {
a = array[j];
array[j] = array[j + 1];
array[j + 1] = a;
... | #include <stdio.h>
int main(void) {
int a, b, c, i, j;
int array[10];
for (i = 0; i < 10; i++) {
scanf("%d", &array[i]);
}
for (i = 0; i < 9; i++) {
for (j = 0; j < 9 - i; j++) {
if (array[j] > array[j + 1]) {
a = array[j];
array[j] = array[j + 1];
array[j + 1] = a;
... | [["-", 8, 9, 0, 7, 15, 16, 31, 16, 17, 72], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 60], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 172 | 6 |
#include <stdio.h>
int main(void) {
char buf[6];
int mountains[10];
int i, j, tmp;
for (i = 0; i < 10; i++) {
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d", &tmp);
mountains[i] = tmp;
}
for (i = 0; i < 10 - 1; i++) {
for (j = i + 1; j < 10; j++) {
if (mountains[i] < mountains[j])... | #include <stdio.h>
int main(void) {
char buf[6];
int mountains[10];
int i, j, tmp;
for (i = 0; i < 10; i++) {
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d", &mountains[i]);
}
for (i = 0; i < 10 - 1; i++) {
for (j = i + 1; j < 10; j++) {
if (mountains[i] < mountains[j]) {
tmp ... | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25]] | 0 | 175 | 6 |
#include <stdio.h>
#include <stdlib.h>
int compare(int *a, int *b) { return *a - *b; }
int main(void) {
int Height[10] = {0};
int i;
for (i = 0; i < 10; i++) {
scanf("%d", &Height[i]);
}
qsort(Height, 10, sizeof(int), (void *)compare);
printf("%d\n%d\n%d", Height[7], Height[8], Height[9]);
retu... | #include <stdio.h>
#include <stdlib.h>
int compare(int *a, int *b) { return *a - *b; }
int main(void) {
int Height[10] = {0};
int i;
for (i = 0; i < 10; i++) {
scanf("%d", &Height[i]);
}
qsort(Height, 10, sizeof(int), (void *)compare);
printf("%d\n%d\n%d\n", Height[9], Height[8], Height[7]);
re... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 69, 71, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 71, 13]] | 0 | 119 | 5 |
#include <stdio.h>
int main() {
int a[100], i, j, n, t;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < n - 1; i++) {
for (j = n - 1; j > i; j--) {
if (a[j] > a[j - 1]) {
t = a[j];
a[j] = a[j - 1];
a[j - 1] = t;
}
}
}
for (i = 0; i < 3; i++) {... | #include <stdio.h>
int main() {
int a[100], i, j, n, t;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 10 - 1; i++) {
for (j = 10 - 1; j > i; j--) {
if (a[j] > a[j - 1]) {
t = a[j];
a[j] = a[j - 1];
a[j - 1] = t;
}
}
}
for (i = 0; i < 3; i++)... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 31, 13]] | 0 | 161 | 4 |
#include <stdio.h>
int main() {
int hills[10];
int i, j;
int temp;
for (i = 0; i < 10; i++) {
scanf("%d", &hills[i]);
}
for (i = 0; i < 9; i++) {
for (j = 0; j < 9 - 1; j++) {
if (hills[j] < hills[j + 1]) {
temp = hills[j];
hills[j] = hills[j + 1];
hills[j + 1] = tem... | #include <stdio.h>
int main() {
int hills[10];
int i, j;
int temp;
for (i = 0; i < 10; i++) {
scanf("%d", &hills[i]);
}
for (i = 0; i < 9; i++) {
for (j = 0; j < 9 - i; j++) {
if (hills[j] < hills[j + 1]) {
temp = hills[j];
hills[j] = hills[j + 1];
hills[j + 1] = tem... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]] | 0 | 154 | 5 |
#include <stdio.h>
#include <string.h>
int main() {
int n, i, x[10], temp, j;
for (i = 0; i < 10; i++) {
scanf("%d", &x[i]);
}
n = 10;
for (i = 0; i < n - 1; i++) {
for (j = n - 1; j > i; j--) {
if (x[j - 1] > x[j]) {
temp = x[j];
x[j] = x[j - 1];
x[j - 1] = temp;
... | #include <stdio.h>
#include <string.h>
int main() {
int n, i, x[10], temp, j;
for (i = 0; i < 10; i++) {
scanf("%d", &x[i]);
}
n = 10;
for (i = 0; i < n - 1; i++) {
for (j = n - 1; j > i; j--) {
if (x[j - 1] > x[j]) {
temp = x[j];
x[j] = x[j - 1];
x[j - 1] = temp;
... | [["+", 0, 2, 3, 4, 0, 69, 71, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]] | 0 | 165 | 2 |
#include <stdio.h>
#define INDEX 10
void sort(int array[], int n) {
int i, j;
for (i = 0; i < n - 1; i++) {
for (j = n - 1; j > i; j--) {
if (array[j - 1] > array[j]) {
int t = array[j - 1];
array[j - 1] = array[j];
array[j] = t;
}
}
}
}
int main() {
int height[10];
... | #include <stdio.h>
#define INDEX 10
void sort(int array[], int n) {
int i, j;
for (i = 0; i < n - 1; i++) {
for (j = n - 1; j > i; j--) {
if (array[j - 1] > array[j]) {
int t = array[j - 1];
array[j - 1] = array[j];
array[j] = t;
}
}
}
}
int main() {
int height[10];
... | [["+", 3, 4, 0, 69, 71, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 69, 71, 16, 31, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]] | 0 | 183 | 4 |
#include <stdio.h>
#include <string.h>
int main(void) {
int i, j, temp, input_int, rank[3] = {0};
char input[5];
char *p;
for (i = 0; i < 10; i++) {
fgets(input, sizeof(input), stdin);
p = strchr(input, '\n');
if (p != NULL)
*p = '\0';
sscanf(input, "%d", &input_int);
for (j = 0; j < ... | #include <stdio.h>
#include <string.h>
int main(void) {
int i, j, temp, input_int, rank[3] = {0};
char input[10];
char *p;
for (i = 0; i < 10; i++) {
fgets(input, sizeof(input), stdin);
p = strchr(input, '\n');
if (p != NULL)
*p = '\0';
sscanf(input, "%d", &input_int);
for (j = 0; j <... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]] | 0 | 177 | 2 |
#include <stdio.h>
int main(void) {
int first = 0, second, third;
int i, tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &tmp);
if (tmp >= first) {
second = first;
first = tmp;
} else if (tmp >= second) {
third = second;
second = tmp;
} else if (tmp >= third) {
third = ... | #include <stdio.h>
int main(void) {
int first = 0, second, third;
int i, tmp;
for (i = 0; i < 10; i++) {
scanf("%d", &tmp);
if (tmp >= first) {
third = second;
second = first;
first = tmp;
} else if (tmp >= second) {
third = second;
second = tmp;
} else if (tmp >= ... | [["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 0 | 115 | 4 |
#include <stdio.h>
int main() {
int i, j, height[10], backup;
for (i = 0; i < 10; i++) {
scanf("%d", height[i]);
}
for (j = 0; j < 10; j++) {
for (i = 0; i < 9; i++) {
if (height[i] > height[i + 1]) {
backup = height[i];
height[i] = height[i + 1];
height[i + 1] = backup;
... | #include <stdio.h>
int main() {
int i, j, height[10], backup;
for (i = 0; i < 10; i++) {
scanf("%d", &height[i]);
}
for (j = 0; j < 10; j++) {
for (i = 0; i < 9; i++) {
if (height[i] > height[i + 1]) {
backup = height[i];
height[i] = height[i + 1];
height[i + 1] = backup;
... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 154 | 1 |
#include <stdio.h>
#define MOUNTAINS 10
void swap(int *a, int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
int main(void) {
int height[MOUNTAINS], i, j;
for (i = 0; i < MOUNTAINS; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < MOUNTAINS - 1; i++) {
for (j = 0; j < MOUNTAINS - (i + 1); j++) {
... | #include <stdio.h>
#define MOUNTAINS 10
void swap(int *a, int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
int main(void) {
int height[MOUNTAINS], i, j;
for (i = 0; i < MOUNTAINS; i++) {
scanf("%d", &height[i]);
}
for (i = 0; i < MOUNTAINS - 1; i++) {
for (j = 0; j < MOUNTAINS - (i + 1); j++) {
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 182 | 2 |
#include <stdio.h>
int swap(int *a, int *b);
int main(void) {
int value[10], i, i2, D;
for (i = 0; i < 10; i++) {
scanf("%d", &value[i]);
}
for (i = 0; i < 10; i++) {
for (i2 = 0; i2 < 9; i2++) {
if (value[i2] < value[i2 + 1]) {
swap(&value[i2], &value[i2 + 1]);
}
}
}
for... | #include <stdio.h>
int swap(int *a, int *b);
int main(void) {
int value[10], i, i2, D;
for (i = 0; i < 10; i++) {
scanf("%d", &value[i]);
}
for (i = 0; i < 10; i++) {
for (i2 = 0; i2 < 9; i2++) {
if (value[i2] < value[i2 + 1]) {
swap(&value[i2], &value[i2 + 1]);
}
}
}
for... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 189 | 1 |
#include <stdio.h>
int main() {
int hills[10], top[3], i, j;
for (i = 0; i < 10; i++)
scanf("%d", &hills[i]);
for (i = 1; i < 10; i++) {
int tmp = hills[i];
for (j = i; j > 0 && hills[j - 1] > tmp; j--)
hills[j] = hills[j - 1];
hills[j] = tmp;
}
for (i = 0; i < 3; i++)
printf("%d\... | #include <stdio.h>
int main() {
int hills[10], top[3], i, j, tmp;
for (i = 0; i < 10; i++)
scanf("%d", &hills[i]);
for (i = 1; i < 10; i++) {
tmp = hills[i];
for (j = i; j > 0 && hills[j - 1] < tmp; j--)
hills[j] = hills[j - 1];
hills[j] = tmp;
}
for (i = 0; i < 3; i++)
printf("%d... | [["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 47], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 18]] | 0 | 142 | 5 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = 10;
int[] ary = new int[n];
for (int i = 0; i < n; i++) {
ary[i] = sc.nextInt();
}
for (int i = 1; i < n; i++) {
int value = ary[i]... | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = 10;
int[] ary = new int[n];
for (int i = 0; i < n; i++) {
ary[i] = sc.nextInt();
}
for (int i = 1; i < n; i++) {
int value = ary[i]... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]] | 3 | 198 | 2 |
import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] m = new int[10];
int[] max = new int[3];
for (int i = 0; i < 10; i++) {
m[i] = scan.nextInt();
if (m[i] >= max[0]) {
max[2] = max[1];
max[1] = max[0];
... | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] m = new int[10];
int[] max = new int[3];
for (int i = 0; i < 10; i++) {
m[i] = scan.nextInt();
if (m[i] >= max[0]) {
max[2] = max[1];
max[1] = max[0];... | [["-", 64, 196, 0, 1, 0, 11, 12, 504, 71, 499], ["+", 64, 196, 0, 1, 0, 11, 12, 504, 71, 22]] | 3 | 215 | 2 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Calc calc = new Calc();
int[] height = {0, 0, 0};
int newh;
;
for (int cnt = 0; cnt < 10; cnt++) {
newh = sc.nextInt();
height = Calc.calc(newh, height);
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Calc calc = new Calc();
int[] height = {0, 0, 0};
int newh;
;
for (int cnt = 0; cnt < 10; cnt++) {
newh = sc.nextInt();
height = Calc.calc(newh, height);
... | [["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 15, 0, 16, 12, 23, 0, 16, 17, 19]] | 3 | 281 | 4 |
import java.io.*;
import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
br.lines()
.parallel()
.map(Integer::parseInt)
// .boxed()
.sorted(Comparator.reverse... | import java.io.*;
import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
br.lines()
.parallel()
.map(Integer::parseInt)
// .boxed()
.sorted(Comparator.reverse... | [["+", 0, 1, 0, 492, 500, 492, 500, 492, 141, 22], ["+", 0, 492, 500, 492, 500, 492, 3, 4, 0, 24], ["+", 0, 492, 500, 492, 500, 492, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 492, 500, 492, 0, 131]] | 3 | 95 | 4 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a[] = new int[10];
int top = 0;
int second = 0;
int thard = 0;
//???????????????
for (int i = 0; i < 10; i++) {
a[i] = s.nextInt();
if (i > 0) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a[] = new int[10];
int top = 0;
int second = 0;
int thard = 0;
//???????????????
for (int i = 0; i < 10; i++) {
a[i] = s.nextInt();
if (i > 0) {
... | [["-", 64, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 64, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["-", 75, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["+", 75, 57, 15, 15, 0, 16, 31, 16, 17, 19], ["-", 75, 57, 15, 15, 0, 16, 12, 16, 17, 47], ["+", 75, 57, 15, 15, 0, 16, 12, 16, 17, 20]] | 3 | 217 | 10 |
import java.util.*;
class Main {
public static void main(String[] a) {
Scanner inp = new Scanner(System.in);
int[] mount = new int[10];
for (int i = 0; i < mount.length; i++) {
mount[i] = inp.nextInt();
}
Arrays.sort(mount);
System.out.print(mount[9]);
System.out.print(mount[8]);
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner inp = new Scanner(System.in);
int[] mount = new int[10];
for (int i = 0; i < mount.length; i++) {
mount[i] = inp.nextInt();
}
Arrays.sort(mount);
System.out.println(mount[9]);
System.out.println(... | [["+", 36, 36, 0, 493, 0, 235, 0, 494, 0, 259], ["-", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22]] | 3 | 117 | 9 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int[] num = new int[10];
for (int i = 0; i < 10; i++) {
num[i] = Integer.valueOf(buf.readLine());
}
... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int[] num = new int[10];
for (int i = 0; i < 10; i++) {
num[i] = Integer.valueOf(buf.readLine());
}
... | [["+", 0, 492, 3, 4, 0, 504, 71, 16, 31, 499], ["+", 0, 492, 3, 4, 0, 504, 71, 16, 17, 33]] | 3 | 126 | 2 |
import java.util.*;
class Main {
public static void main(String[] a) {
int n = 10;
int[] num = new int[n];
Scanner stdin = new Scanner(System.in);
for (int i = 0; i < n; i++) {
num[i] = stdin.nextInt();
}
boolean flag = true;
while (flag) {
flag = false;
for (int j = n ... | import java.util.*;
class Main {
public static void main(String[] a) {
int n = 10;
int[] num = new int[n];
Scanner stdin = new Scanner(System.in);
for (int i = 0; i < n; i++) {
num[i] = stdin.nextInt();
}
boolean flag = true;
while (flag) {
flag = false;
for (int j = n ... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 187 | 4 |
import java.util.*;
public class Main {
public static void main(String args[]) throws Exception {
Scanner sc = new Scanner(System.in);
Integer[] mount = new Integer[10];
int i = 0;
while (i != 9) {
mount[i] = sc.nextInt();
i++;
}
sort(mount);
sc.close();
}
public static vo... | import java.util.*;
public class Main {
public static void main(String args[]) throws Exception {
Scanner sc = new Scanner(System.in);
Integer[] mount = new Integer[10];
int i = 0;
while (i != 10) {
mount[i] = sc.nextInt();
i++;
}
sort(mount);
sc.close();
}
public static v... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499]] | 3 | 133 | 2 |
import java.io.*;
public class Main {
static int first = 0;
static int second = 0;
static int third = 0;
static int tmp = 0;
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String buf = b... | import java.io.*;
public class Main {
static int first = 0;
static int second = 0;
static int third = 0;
static int tmp = 0;
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String buf = b... | [["-", 0, 246, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 246, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 191 | 2 |
import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner sc = new Scanner(System.in);
int numone = 0;
int numtwo = 0;
int numthree = 0;
int x;
for (int i = 0; i < 9; i++) {
x = sc.nextInt();
if (numone <= x) {
numthree = numtwo;
numtwo =... | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner sc = new Scanner(System.in);
int numone = 0;
int numtwo = 0;
int numthree = 0;
int x;
for (int i = 0; i < 10; i++) {
x = sc.nextInt();
if (numone <= x) {
numthree = numtwo;
numtwo ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 147 | 2 |
import java.util.*;
class Main {
public static void main(String[] g) {
int i = 0, a[] = new int[10];
for (Scanner S = new Scanner(System.in); i < 9;)
a[i++] = S.nextInt();
Arrays.sort(a);
for (i = 9; i > 6;)
System.out.println(a[i--]);
}
}
| import java.util.*;
class Main {
public static void main(String[] g) {
int i = 0, a[] = new int[10];
for (Scanner S = new Scanner(System.in); i < 10;)
a[i++] = S.nextInt();
Arrays.sort(a);
for (i = 9; i > 6;)
System.out.println(a[i--]);
}
}
| [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 99 | 2 |
import java.io.*;
import java.util.Arrays;
public class Main {
private static int[] mountains = new int[10];
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
for (int i = 0; i < 10; i++) {
mountains[i] = Integer.... | import java.io.*;
import java.util.Arrays;
public class Main {
private static int[] mountains = new int[10];
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
for (int i = 0; i < 10; i++) {
mountains[i] = Integer.... | [["-", 0, 195, 8, 196, 0, 7, 26, 27, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 26, 27, 0, 68]] | 3 | 128 | 2 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] res = new int[3];
for (int i = 0; i < 10; i++) {
int now = sc.nextInt();
if (now >= res[0]) {
int x = res[0];
int y = res[1];
... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] res = new int[3];
for (int i = 0; i < 10; i++) {
int now = sc.nextInt();
if (now >= res[0]) {
int x = res[0];
int y = res[1];
... | [["-", 64, 196, 0, 503, 49, 200, 51, 504, 71, 499], ["+", 64, 196, 0, 503, 49, 200, 51, 504, 71, 499]] | 3 | 208 | 2 |
import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = 10, m = 3;
int alt[] = new int[n];
for (int i = 0; i < n; i++) {
alt[i] = sc.nextInt();
}
Arrays.sort(alt);
for (int i = 0; i < m - 1;... | import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = 10, m = 3;
int alt[] = new int[n];
for (int i = 0; i < n; i++) {
alt[i] = sc.nextInt();
}
Arrays.sort(alt);
for (int i = 0; i < m; i++... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499]] | 3 | 129 | 2 |
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] a) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int data[] = new int[10];
for (int i = 0; i < 10; i++) {
data[i] = Integer.parseInt(br.readLine());
}
Array... | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] a) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int data[] = new int[10];
for (int i = 0; i < 10; i++) {
data[i] = Integer.parseInt(br.readLine());
}
Array... | [["+", 8, 1, 0, 492, 3, 4, 0, 5, 0, 44]] | 3 | 127 | 1 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] h = new int[4];
for (int i = 0; i < h.length; i++) {
h[i] = sc.nextInt();
}
for (int i = 0; i < 3; i++) {
for (int j = i; j < h.length; j++) {
if ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] h = new int[10];
for (int i = 0; i < h.length; i++) {
h[i] = sc.nextInt();
}
for (int i = 0; i < 3; i++) {
for (int j = i; j < h.length; j++) {
if... | [["-", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499], ["+", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499]] | 3 | 160 | 2 |
import java.util.Arrays;
import java.util.Scanner;
class Main {
static void run() {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int mountain[] = new int[10];
for (int i = 0; i < 10; i++) {
mountain[i] = sc.nextInt();
}
Arrays.sort(mountain);
System.ou... | import java.util.Arrays;
import java.util.Scanner;
class Main {
static void run() {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int mountain[] = new int[10];
for (int i = 0; i < 10; i++) {
mountain[i] = sc.nextInt();
}
Arrays.sort(mountain);
System.ou... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 44], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 44]] | 3 | 137 | 4 |
import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] arg) {
Scanner cin = new Scanner(System.in);
int[] a = new int[10];
int[] c = new int[10];
for (int i = 0; i < 10; i++) {
a[i] = cin.nextInt();
c[i] = a[i];
}
Arrays.sort(a);
for... | import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] arg) {
Scanner cin = new Scanner(System.in);
int[] a = new int[10];
int[] c = new int[10];
for (int i = 0; i < 10; i++) {
a[i] = cin.nextInt();
c[i] = a[i];
}
Arrays.sort(a);
for... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 139 | 2 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int[] h = new int[10];
for (int i = 0; i < 10; i++) {
h[i] = sc.nextInt();
}
Arrays.sort(h);
for (int i = h.length - 1; i >= 0; i--) {
... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int[] h = new int[10];
for (int i = 0; i < 10; i++) {
h[i] = sc.nextInt();
}
Arrays.sort(h);
for (int i = h.length - 1; i >= 7; i--) {
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 119 | 2 |
import java.util.*;
class Main {
public static int main(String a) {
Scanner scan = new Scanner(System.in);
int[] top = new int[10];
for (int i = 0; i < 10; i++) {
top[i] = scan.nextInt();
}
for (int i = 0; i < 10; i++) {
for (int j = 9; j > i; j--) {
if (top[j] > top[j - 1]) {
... | import java.util.*;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] top = new int[10];
for (int i = 0; i < 10; i++) {
top[i] = scan.nextInt();
}
for (int i = 0; i < 10; i++) {
for (int j = 9; j > i; j--) {
if (top[j] > top[j - 1])... | [["-", 0, 235, 8, 498, 0, 195, 39, 506, 0, 507], ["+", 0, 493, 0, 235, 8, 498, 0, 195, 39, 508], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 70], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 73], ["-", 8, 498, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 498, 0, 195, 8, 196, 0, 37, 0, 38], ["-", 8, 498, 0, 195, 8, 196, 0, 3... | 3 | 186 | 7 |
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = 10;
int array[] = new int[N];
for (int i = 0; i < 10; i++) {
String line = br.readLine();
array[i] = Integer.pa... | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = 10;
int array[] = new int[N];
for (int i = 0; i < 10; i++) {
String line = br.readLine();
array[i] = Integer.p... | [["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 3 | 303 | 2 |
package Package;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamRea... | [["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 483], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 272 | 5 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n[] = new int[10];
int a = 0;
int b = 0;
int c = 0;
for (int i = 0; i < 10; i++) {
n[i] = sc.nextInt();
if (a <= n[i]) {
b = a;
a = n[i];
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n[] = new int[10];
int a = 0;
int b = 0;
int c = 0;
for (int i = 0; i < 10; i++) {
n[i] = sc.nextInt();
if (a <= n[i]) {
c = b;
b = a;
... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 3 | 179 | 4 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
/**
* Created by keisuke on 2014/06/23.
*/
public class Main {
public static void main(String[] args) {
int[] hills = new int[10];
Scanner scanner =
new Scanner(new BufferedReader(ne... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[] hills = new int[10];
Scanner scanner =
new Scanner(new BufferedReader(new InputStreamReader(System.in)));
for (int... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 155 | 2 |
#include <stdio.h>
int main(void) {
int one, two, three, num;
int i;
one = two = three = num = 0;
for (i = 0; i < 10; i++) {
scanf("%d", &num);
if (num >= one) {
three = two;
two = one;
one = num;
} else if (num >= one) {
three = two;
two = num;
} else if (num >... | #include <stdio.h>
int main(void) {
int one, two, three, num;
int i;
one = two = three = num = 0;
for (i = 0; i < 10; i++) {
scanf("%d", &num);
if (num >= one) {
three = two;
two = one;
one = num;
} else if (num >= two) {
three = two;
two = num;
} else if (num >... | [["-", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22]] | 0 | 127 | 2 |
#include <stdio.h>
int main(void) {
int i, j, a[10], t;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 10 - 1; j++) {
if (a[j] < a[j + 1]) {
t = a[j + 1];
a[j + 1] = a[j];
a[j] = t;
}
}
}
for (i = 0; i < 3; i++) ... | #include <stdio.h>
int main(void) {
int i, j, a[10], t;
for (i = 0; i < 10; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 10 - 1; j++) {
if (a[j] < a[j + 1]) {
t = a[j + 1];
a[j + 1] = a[j];
a[j] = t;
}
}
}
for (i = 0; i < 3; i++) ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 155 | 3 |
#include <iostream>
using namespace std;
int main() {
int a[100] = {0};
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
int big1, big2, big3;
big1 = a[0];
big2 = big3 = 0;
for (int k = 1; k < 10; k++) {
if (a[k] > big1) {
big3 = big2;
big2 = big1;
big1 = a[k];
} else if (a[k]... | #include <iostream>
using namespace std;
int main() {
int a[100] = {0};
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
int big1, big2, big3;
big1 = a[0];
big2 = big3 = 0;
for (int k = 1; k < 10; k++) {
if (a[k] > big1) {
big3 = big2;
big2 = big1;
big1 = a[k];
} else if (a[k]... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]] | 1 | 170 | 8 |
// List_of _Top_3_Hills.cpp : ???????????????
// ??¢????????±????????§????????¨????????? ?????????????????????????????????
//
#include <stdio.h>
#define sort 10
int main() {
int bab[sort], temp;
for (int n = 0; n < sort; n++) {
scanf("%d", &bab[sort]);
}
for (int i = 0; i < sort - 1; i++) {
for (int ... | // List_of _Top_3_Hills.cpp : ???????????????
// ??¢????????±????????§????????¨????????? ?????????????????????????????????
//
#include <stdio.h>
#define sort 10
int main() {
int bab[sort], temp;
for (int n = 0; n < sort; n++) {
scanf("%d", &bab[n]);
}
for (int i = 0; i < sort - 1; i++) {
for (int j =... | [["-", 3, 4, 0, 66, 28, 69, 341, 342, 0, 22], ["+", 3, 4, 0, 66, 28, 69, 341, 342, 0, 22]] | 1 | 163 | 2 |
#include <algorithm>
#include <iostream>
int main() {
int data[10];
for (int i = 0; i < 10; i++) {
std::cin >> data[i];
}
std::sort(data, data + 10, std::greater<int>());
for (int i = 0; i < 10; i++) {
std::cout << data[i] << std::endl;
}
} | #include <algorithm>
#include <iostream>
int main() {
int data[10];
for (int i = 0; i < 10; i++) {
std::cin >> data[i];
}
std::sort(data, data + 10, std::greater<int>());
for (int i = 0; i < 3; i++) {
std::cout << data[i] << std::endl;
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 90 | 2 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main(void) {
int i, array[10];
for (i = 0; i < 10; i++)
scanf("%d", &array[i]);
sort(array, array + 10);
for (i = 9; i >= 7; i++)
printf("%d\n", array[i]);
return 0;
} | #include <algorithm>
#include <cstdio>
using namespace std;
int main(void) {
int i, array[10];
for (i = 0; i < 10; i++)
scanf("%d", &array[i]);
sort(array, array + 10);
for (i = 9; i >= 7; i--)
printf("%d\n", array[i]);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 68]] | 1 | 87 | 2 |
#include <stdio.h>
int main() {
int height[10], rank[3] = {0};
int i;
for (i = 0; i < 10; i++) {
scanf("%d\n", height[i]);
if (rank[0] < height[i]) {
rank[2] = rank[1];
rank[1] = rank[0];
rank[0] = height[i];
} else if (rank[1] < height[i]) {
rank[2] = rank[1];
rank[1]... | #include <stdio.h>
int main() {
int height[10], rank[3] = {0};
int i;
for (i = 0; i < 10; i++) {
scanf("%d\n", &height[i]);
if (rank[0] < height[i]) {
rank[2] = rank[1];
rank[1] = rank[0];
rank[0] = height[i];
} else if (rank[1] < height[i]) {
rank[2] = rank[1];
rank[1... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 189 | 1 |
#include <iostream>
using namespace std;
int main() {
int m[10], temp;
for (int i = 0; i < 10; i++)
cin >> m[i];
for (int i = 0; i < 4; i++) {
for (int j = i + 1; j < 10; j++) {
if (m[i] < m[j]) {
temp = m[i];
m[i] = m[j];
m[j] = temp;
}
}
cout << m[i] << endl... | #include <iostream>
using namespace std;
int main() {
int m[10], temp;
for (int i = 0; i < 10; i++)
cin >> m[i];
for (int i = 0; i < 3; i++) {
for (int j = i + 1; j < 10; j++) {
if (m[i] < m[j]) {
temp = m[i];
m[i] = m[j];
m[j] = temp;
}
}
cout << m[i] << endl... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 122 | 2 |
#include <iostream>
using namespace std;
int main() {
int first = 0, second = 0, third = 0;
for (int i = 0; i < 10; i++) {
int n;
cin >> n;
if (n > first) {
third = second;
second = first;
first = n;
} else if (n > second) {
third = second;
second = n;
} else if (n... | #include <iostream>
using namespace std;
int main() {
int first = 0, second = 0, third = 0;
for (int i = 0; i < 10; i++) {
int n;
cin >> n;
if (n > first) {
third = second;
second = first;
first = n;
} else if (n > second) {
third = second;
second = n;
} else if (n... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 44], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 44]] | 1 | 119 | 4 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int m[10];
for (int i = 0; i < 9; i++)
cin >> m[i];
sort(m, m + 10);
for (int i = 9; i > 6; i++)
cout << m[i] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int m[10];
for (int i = 0; i < 10; i++)
cin >> m[i];
sort(m, m + 10);
for (int i = 9; i > 6; i--)
cout << m[i] << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 68]] | 1 | 76 | 4 |
#include <iostream>
using namespace std;
int main() {
int x[10], tmp, i, j;
for (i = 0; i < 10; ++i)
cin >> x[i];
for (i = 0; i < 10; ++i) {
for (j = 0; j < 10; ++j) {
if (x[i] < x[j]) {
tmp = x[i];
x[i] = x[j];
x[j] = tmp;
}
}
}
for (i = 0; i < 3; ++i)
... | #include <iostream>
using namespace std;
int main() {
int x[10], tmp, i, j;
for (i = 0; i < 10; ++i)
cin >> x[i];
for (i = 0; i < 10; ++i) {
for (j = i + 1; j < 10; ++j) {
if (x[i] < x[j]) {
tmp = x[i];
x[i] = x[j];
x[j] = tmp;
}
}
}
for (i = 0; i < 3; ++i)... | [["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13]] | 1 | 139 | 4 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a[10];
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
for (int x = 0; x < 9; x++) {
for (int i = 0; i < 9; i++) {
if (a[i] > a[i + 1]) {
swap(a[i], a[i + 1]);
}
}
}
cout << a[9] << " " << a[8] << " ... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a[10];
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
for (int x = 0; x < 9; x++) {
for (int i = 0; i < 9; i++) {
if (a[i] > a[i + 1]) {
swap(a[i], a[i + 1]);
}
}
}
cout << a[9] << endl;
cout << a... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 136 | 12 |
#include <algorithm>
#include <iostream>
using namespace std;
;
int main() {
int i, a[10];
for (i = 0; i < 10; i++) {
cin >> a[i];
}
sort(a, a + 10);
cout << a[9] << a[8] << a[7] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
;
int main() {
int i, a[10];
for (i = 0; i < 10; i++) {
cin >> a[i];
}
sort(a, a + 10);
cout << a[9] << endl << a[8] << endl << a[7] << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]] | 1 | 76 | 4 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int i, a[10];
for (i = 0; i < 10; i++)
cin >> a[i];
sort(a, a + 9);
cout << a[9] << endl << a[8] << endl << a[7] << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, a[10];
for (i = 0; i < 10; i++)
cin >> a[i];
sort(a, a + 10);
cout << a[9] << endl << a[8] << endl << a[7] << endl;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 72 | 9 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int i, a[10];
for (i = 0; i < 10; i++)
cin >> a[i];
sort(a, a + 9);
cout << a[9] << endl << a[8] << endl << a[7] << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[10];
for (int i = 0; i <= 9; i++)
cin >> a[i];
sort(a, a + 10);
cout << a[9] << endl << a[8] << endl << a[7] << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0,... | 1 | 72 | 9 |
#include <iostream>
using namespace std;
int main() {
int height;
int top[3] = {0, 0, 0};
for (int i = 0; i < 10; i++) {
cin >> height;
for (int j = 0; j < 3; j++) {
if (top[j] <= height) {
for (int k = 2; k > 2 - j; k--) {
top[k] = top[k - 1];
}
top[j] = height;
... | #include <iostream>
using namespace std;
int main() {
int height;
int top[3] = {0, 0, 0};
for (int i = 0; i < 10; i++) {
cin >> height;
for (int j = 0; j < 3; j++) {
if (top[j] <= height) {
for (int k = 2; k > j; k--) {
top[k] = top[k - 1];
}
top[j] = height;
... | [["-", 64, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["-", 64, 9, 0, 7, 15, 16, 12, 16, 17, 33]] | 1 | 143 | 2 |
#include <algorithm>
#include <iostream>
using namespace ::std;
int main() {
int array[10];
for (int i = 0; i < 10; i++)
cin >> array[i];
sort(array, array + 10);
for (int i = 9; i > 6; i++)
cout << array[i] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace ::std;
int main() {
int array[10];
for (int i = 0; i < 10; i++)
cin >> array[i];
sort(array, array + 10);
for (int i = 9; i > 6; i--)
cout << array[i] << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 68]] | 1 | 77 | 2 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v;
int num;
for (int i = 0; i < 10; i++) {
cin >> num;
v.push_back(num);
}
sort(v.begin(), v.end(), greater<int>());
for (int i = 0; i < 3; i++)
cout << v.at(i);
return 0;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v;
int num;
for (int i = 0; i < 10; i++) {
cin >> num;
v.push_back(num);
}
sort(v.begin(), v.end(), greater<int>());
for (int i = 0; i < 3; i++)
cout << v.at(i) << endl;
return 0;
} | [["+", 8, 9, 0, 7, 8, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 7, 8, 1, 0, 16, 12, 22]] | 1 | 100 | 2 |
#include <iostream>
using namespace std;
int main() {
int height[10];
for (int i = 0; i < 10; i++) {
cin >> height[i];
}
int top[3] = {0};
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 3; j++) {
if (height[i] > top[j]) {
for (int k = 2; k > j; k--) {
top[k] = top[k - 1]... | #include <iostream>
using namespace std;
int main() {
int height[10];
for (int i = 0; i < 10; i++) {
cin >> height[i];
}
int top[3] = {0};
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 3; j++) {
if (height[i] > top[j]) {
for (int k = 2; k > j; k--) {
top[k] = top[k - 1]... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 163 | 2 |
#include <stdio.h>
using namespace std;
int main() {
int length;
int a, b, c, tmp;
a = b = c = 0;
for (int i = 0; i < 10; i++) {
scanf("%d", &length);
if (length > a) {
if (length > b) {
a = b;
if (length > c) {
b = c;
c = length;
} else {
b ... |
#include <stdio.h>
using namespace std;
int main() {
int length;
int a, b, c, tmp;
a = b = c = 0;
for (int i = 0; i < 10; i++) {
scanf("%d", &length);
if (length > a) {
if (length > b) {
a = b;
if (length > c) {
b = c;
c = length;
} else {
b... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 141 | 2 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int sum[10];
int i;
for (i = 0; i < 10; i++)
cin >> sum[i];
sort(sum + 1, sum + 10);
for (i = 9; i > 6; i--)
cout << sum[i] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int sum[10], i;
for (i = 0; i < 10; i++)
cin >> sum[i];
sort(sum, sum + 10);
for (i = 9; i > 6; i--)
cout << sum[i] << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 79 | 5 |
#include <algorithm>
#include <cstdio>
using namespace std;
const int N = 10;
int a[N];
int main() {
for (int i = 0; i < N; i++) {
scanf("%d", &a[i]);
}
sort(a, a + N);
for (int i = 1; i <= 3; i++)
printf("%d/n", a[N - i]);
} | #include <algorithm>
#include <cstdio>
using namespace std;
const int N = 10;
int a[N];
int main() {
for (int i = 0; i < N; i++) {
scanf("%d", &a[i]);
}
sort(a, a + N);
for (int i = 1; i < 4; i++)
printf("%d\n", a[N - i]);
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 92 | 7 |
#include <bits/stdc++.h>
using namespace std;
int n, a[50];
int main() {
cin >> n;
for (int i = 1; i <= n; i++)
cin >> a[i];
sort(a + 1, a + 1 + n);
for (int i = n; i >= n - 2; i--) {
cout << a[i] << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int n, a[50];
int main() {
n = 10;
for (int i = 1; i <= n; i++)
cin >> a[i];
sort(a + 1, a + 1 + n);
for (int i = n; i >= n - 2; i--) {
cout << a[i] << endl;
}
} | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 85 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.