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
#include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (W == 0 && H == 0) break; for (int i = 1; i <= H; i++) { for (int k = 1; k <= W; k++) cout << "#"; cout << "\n"; } } return 0; }
#include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (W == 0 && H == 0) break; for (int i = 1; i <= H; i++) { for (int k = 1; k <= W; k++) cout << "#"; cout << "\n"; } cout << "\n"; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
86
#include <iostream> #define PI 3.141592653589 using namespace std; int main() { while (1) { int H, W; cin >> H >> W; if (H == 0 && W == 0) break; for (int y = 0; y < H; y++) { for (int x = 0; x < W; x++) { printf("#"); } printf("\n"); } } return 0; }
#include <iostream> #define PI 3.141592653589 using namespace std; int main() { while (1) { int H, W; cin >> H >> W; if (H == 0 && W == 0) break; for (int y = 0; y < H; y++) { for (int x = 0; x < W; x++) { printf("#"); } printf("\n"); } printf("\n"); } re...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
93
#include <cstdio> int main() { int a, b; while (true) { scanf("%d %d", &a, &b); if (a == 0) break; for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { printf("#"); } printf("\n"); } } return 0; }
#include <cstdio> int main() { int a, b; while (true) { scanf("%d %d", &a, &b); if (a == 0) break; for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
89
#include <iostream> using namespace std; int main(void) { int h, w; int i, j; while (true) { cin >> h >> w; if (h == 0 && w == 0) break; for (i = 0; i < h; i++) { for (j = 0; j < w; j++) cout << "#"; cout << "\n"; } } return 0; }
#include <iostream> using namespace std; int main(void) { int h, w; int i, j; while (true) { cin >> h >> w; if (h == 0 && w == 0) break; for (i = 0; i < h; i++) { for (j = 0; j < w; j++) cout << "#"; cout << "\n"; } cout << "\n"; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <cstdio> int main() { int a, b; while (true) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { printf("#"); } printf("\n"); } } }
#include <cstdio> int main() { int a, b; while (true) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { printf("#"); } printf("\n"); } printf("\n"); } }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <iostream> using namespace std; int main() { int H = 0, W = 0; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int h = 0; h < H; h++) { for (int w = 0; w < W; w++) { cout << "#"; } cout << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int H = 0, W = 0; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int h = 0; h < H; h++) { for (int w = 0; w < W; w++) { cout << "#"; } cout << endl; } cout << "\n"; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << endl; } cout << "\n"; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
86
#include <iostream> using namespace std; int main() { int h, w; while (1) { cin >> h >> w; if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << "#"; } cout << "\n"; } } }
#include <iostream> using namespace std; int main() { int h, w; while (1) { cin >> h >> w; if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << "#"; } cout << "\n"; } cout << "\n"; } }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
85
#include <iostream> using namespace std; int main() { int a, b, c, d; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; for (c = 1; c <= a; c++) { for (d = 1; d <= b; d++) { cout << "#"; } cout << "\n"; } } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, d; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; for (c = 1; c <= a; c++) { for (d = 1; d <= b; d++) { cout << "#"; } cout << "\n"; } cout << "\n"; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <iostream> using namespace std; int H, W; int main() { while (true) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < W; ++i) { for (int i = 0; i < H; ++i) { cout << "#"; } cout << endl; } cout << endl; } }
#include <iostream> using namespace std; int H, W; int main() { while (true) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; ++i) { for (int i = 0; i < W; ++i) { cout << "#"; } cout << endl; } cout << endl; } }
[["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22]]
1
87
i="#" loop{ w,h=gets.split(" ").map(&:to_i) break if w==0 && h==0 h.times{puts i*w} puts "" }
i="#" loop{ h,w=gets.split(" ").map(&:to_i) break if h==0 && w==0 h.times{puts i*w} puts "" }
[["-", 196, 196, 8, 734, 0, 662, 31, 761, 0, 22], ["-", 196, 196, 8, 734, 0, 662, 31, 761, 0, 21], ["+", 196, 196, 8, 734, 0, 662, 31, 761, 0, 21], ["+", 196, 196, 8, 734, 0, 662, 31, 761, 0, 22], ["-", 8, 734, 0, 751, 15, 738, 31, 738, 31, 22], ["+", 8, 734, 0, 751, 15, 738, 31, 738, 31, 22], ["-", 8, 734, 0, 751, 15,...
4
47
/////////////////////////////////////////////// //縦 Hcm,横 Wcm の長方形を出力するプログラム // H*W個の'#'で長方形を表すこと /////////////////////////////////////////////// #include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) {...
/////////////////////////////////////////////// //縦 Hcm,横 Wcm の長方形を出力するプログラム // H*W個の'#'で長方形を表すこと /////////////////////////////////////////////// #include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) {...
[["-", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <stdio.h> int main() { int H, W, i, j; while (1) { scanf("%d %d", &H, &W); if (H != 0 && W != 0) { for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } } else { break; } } }
#include <stdio.h> int main() { int H, W, i, j; while (1) { scanf("%d %d", &H, &W); if (H != 0 && W != 0) { for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } } else { break; } printf("\n"); } }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include <iostream> using namespace std; int main() { int H, W; for (int k = 0;; k++) { cin >> H >> W; if (H == 0 || W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << "\n"; } } return 0; }
#include <iostream> using namespace std; int main() { int H, W; for (int k = 0;; k++) { cin >> H >> W; if (H == 0 || W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << "\n"; } cout << "\n"; } return 0; }
[["+", 0, 7, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
95
#include <iostream> using namespace std; int main() { while (1) { int H, W; cin >> H >> W; if (H == 0 && W == 0) { break; } for (int i = 0; i < W; i++) { for (int i = 0; i < H; i++) { cout << "#"; } cout << endl; } cout << endl; } }
#include <iostream> using namespace std; int main() { while (1) { int H, W; cin >> H >> W; if (H == 0 && W == 0) { break; } for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << endl; } cout << endl; } }
[["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15...
1
89
#include <cstdio> #include <iostream> #include <utility> using namespace std; int main(void) { while (true) { int H, W; cin >> H >> W; if (H == 0 || W == 0) { break; } for (int h = 0; h < H; ++h) { for (int w = 0; w < W; ++w) { putchar('#'); } putchar('\n'); ...
#include <cstdio> #include <iostream> #include <utility> using namespace std; int main(void) { while (true) { int H, W; cin >> H >> W; if (H == 0 || W == 0) { break; } for (int h = 0; h < H; ++h) { for (int w = 0; w < W; ++w) { putchar('#'); } putchar('\n'); ...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 103, 0, 104], ["+", 0, 1, 0, 2, 3, 4, 0, 103, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include <cstdio> #include <iostream> using namespace std; #define MAX 300 int main(void) { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); } printf("\n"); } } return 0; ...
#include <cstdio> #include <iostream> using namespace std; #define MAX 300 int main(void) { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); } printf("\n"); } printf("\n");...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
96
#include <iostream> using namespace std; int main() { int h, w; while (cin >> h >> w) { if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << '#'; } cout << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int h, w; while (cin >> h >> w) { if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << "#"; } cout << endl; } cout << endl; } return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
84
#include <stdio.h> int main(void) { int h, w; int i, j; do { scanf("%d%d", &h, &w); if (h == 0 && w == 0) break; for (i = 0; h > i; i++) { for (j = 0; w > j; j++) printf("#"); puts(""); } } while (1); return (0); }
#include <stdio.h> int main(void) { int h, w; int i, j; do { scanf("%d%d", &h, &w); if (h == 0 && w == 0) break; for (i = 0; h > i; i++) { for (j = 0; w > j; j++) printf("#"); puts(""); } puts(""); } while (1); return (0); }
[["+", 0, 82, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 82, 8, 9, 0, 1, 0, 35]]
1
98
#include <stdio.h> int main() { int H, W, i, j, k; while (1) { scanf("%d%d", &H, &W); if (H == 0 && W == 0) break; for (k = 0; k < H; k++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } } return 0; }
#include <stdio.h> int main() { int H, W, i, j, k; while (1) { scanf("%d%d", &H, &W); if (H == 0 && W == 0) break; for (k = 0; k < H; k++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include <iostream> using namespace std; int h, w; int main() { while (true) { cin >> h >> w; if (h == 0 && w == 0) { break; } for (int j = 0; j < h; j++) { for (int i = 0; i < w; i++) { cout << "#"; } cout << endl << " " << endl; } } }
#include <iostream> using namespace std; int h, w; int main() { while (true) { cin >> h >> w; if (h == 0 && w == 0) { break; } for (int j = 0; j < h; j++) { for (int i = 0; i < w; i++) { cout << "#"; } cout << endl; } cout << endl; } }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 7, 8, 9, 0, 46], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 52, 8, 9, 0, 7, 8, 9, 0, 46]]
1
91
#include <stdio.h> int main() { int w, h; while (1) { scanf("%d", &w); scanf("%d", &h); if (w == 0 && h == 0) return 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) printf("#"); printf("\n"); } printf("\n"); } return 0; }
#include <stdio.h> int main() { int w, h; while (1) { scanf("%d", &h); scanf("%d", &w); if (w == 0 && h == 0) return 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) printf("#"); printf("\n"); } printf("\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
1
106
//#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <numeric> #...
//#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <numeric> #...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
328
#include <stdio.h> main() { int H, W; int i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 1; i <= H; i++) { for (j = 1; j <= W; j++) { printf("#"); } printf("\n"); } } return 0; }
#include <stdio.h> main() { int H, W; int i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 1; i <= H; i++) { for (j = 1; j <= W; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
95
#include <cstdio> int H, W; void print_rectangle() { for (int i = 1; i <= H; i++) { for (int j = 1; j <= W; j++) { printf("#"); } printf("\n"); } } int main() { while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; print_rectangle(); } return 0; }
#include <cstdio> int H, W; void print_rectangle() { for (int i = 1; i <= H; i++) { for (int j = 1; j <= W; j++) { printf("#"); } printf("\n"); } printf("\n"); } int main() { while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; print_rectangle(); } return...
[["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
103
#include <stdio.h> int main(void) { int H, W; int i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } } return 0; }
#include <stdio.h> int main(void) { int H, W; int i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } puts(""); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include <iostream> using namespace std; #include <cstdio> int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << "\n"; } } return 0; }
#include <iostream> using namespace std; #include <cstdio> int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << "\n"; } cout << "\n"; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <iostream> using namespace std; int main() { int h; int w; while (1) { cin >> h >> w; if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << '#'; } cout << ' ' << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int h; int w; while (1) { cin >> h >> w; if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << '#'; } cout << endl; } cout << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
91
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << "\n"; } } return 0; }
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } cout << "\n"; } cout << "\n"; } return 0; ...
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
96
#include <iostream> using namespace std; int main() { while (1) { int h, w; cin >> h >> w; if (h == 0 && w == 0) break; for (int i = 0; i <= h; ++i) { for (int j = 0; j <= w; ++j) { cout << "#"; } cout << endl; } cout << " " << endl; } return 0; }
#include <iostream> using namespace std; int main() { while (1) { int h, w; cin >> h >> w; if (h == 0 && w == 0) break; for (int i = 1; i <= h; ++i) { for (int j = 1; j <= w; ++j) { cout << "#"; } cout << endl; } cout << endl; } return 0; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
94
#include <bits/stdc++.h> using namespace std; struct cww { cww() { ios::sync_with_stdio(false); cin.tie(0); } } star; #define P(x) cout << (x) << endl #define p(x) cout << (x) #define all(c) (c).begin(), (c).end() #define rall(c) (c).rbegin(), (c).rend() #define VV(type, c, m, n, i) vector<vector<type>> c(m...
#include <bits/stdc++.h> using namespace std; struct cww { cww() { ios::sync_with_stdio(false); cin.tie(0); } } star; #define P(x) cout << (x) << endl #define p(x) cout << (x) #define all(c) (c).begin(), (c).end() #define rall(c) (c).rbegin(), (c).rend() #define VV(type, c, m, n, i) vector<vector<type>> c(m...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
214
#include <stdio.h> int main(void) { int h, w, i, j; scanf("%d %d", &h, &w); while ((h != 0) && (w != 0)) { for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { printf("#"); } printf("\n"); } scanf("%d %d", &h, &w); } return 0; }
#include <stdio.h> int main(void) { int h, w, i, j; scanf("%d %d", &h, &w); while ((h != 0) && (w != 0)) { for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { printf("#"); } printf("\n"); } scanf("%d %d", &h, &w); printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
107
#include <math.h> #include <stdio.h> int main(void) { int h, w, i, i2; scanf("%d %d", &h, &w); while (h != 0 && w != 0) { for (i = 0; i < h; i++) { for (i2 = 0; i2 < w; i2++) { printf("#"); } printf("\n"); } scanf("%d %d", &h, &w); } return 0; }
#include <math.h> #include <stdio.h> int main(void) { int h, w, i, i2; scanf("%d %d", &h, &w); while (h != 0 && w != 0) { for (i = 0; i < h; i++) { for (i2 = 0; i2 < w; i2++) { printf("#"); } printf("\n"); } printf("\n"); scanf("%d %d", &h, &w); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
105
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int i, j, h, w, g; while (1) { cin >> h >> w; if (h == 0 && w == 0) { break; } for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { printf("#"); } printf("\n...
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int i, j, h, w, g; while (1) { cin >> h >> w; if (h == 0 && w == 0) { break; } for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { printf("#"); } printf("\n...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
99
#include <cstdio> #include <iostream> using namespace std; int main() { while (true) { int H, W; cin >> H >> W; if (H == 0 && W == 0) break; for (int y = 0; y < H; y++) { for (int x = 0; x < W; x++) { printf("#"); } printf("\n"); } } return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { while (true) { int H, W; cin >> H >> W; if (H == 0 && W == 0) break; for (int y = 0; y < H; y++) { for (int x = 0; x < W; x++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; ...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
92
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int h, w; while (true) { scanf("%d %d", &h, &w); if ((h == 0) && (w == 0)) { break; } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { printf("#"); } printf("\n"); } } return 0; }
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int h, w; while (true) { scanf("%d %d", &h, &w); if ((h == 0) && (w == 0)) { break; } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { printf("#"); } printf("\n"); } printf("\n"); ...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
102
#include <cstdio> #include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 1; i <= H; i++) { for (int j = 1; j <= W; j++) { printf("#"); } printf("\n"); } } return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int i = 1; i <= H; i++) { for (int j = 1; j <= W; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
92
#include <cstdio> int main() { int H, W; while (1) { scanf("%d%d", &H, &W); if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) printf("#"); printf("\n"); } } return 0; }
#include <cstdio> int main() { int H, W; while (1) { scanf("%d%d", &H, &W); if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) printf("#"); printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
91
#include <stdio.h> int main(void) { int H, W, i, t; for (;;) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (i = 1; i <= H; i++) { for (t = 1; t <= W; t++) { printf("#"); } printf("\n"); } } return 0; }
#include <stdio.h> int main(void) { int H, W, i, t; for (;;) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (i = 1; i <= H; i++) { for (t = 1; t <= W; t++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
99
#include <iostream> using namespace std; // #include<cstdio> int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int j = 0; j < H; j++) { for (int i = 0; i < W; i++) { cout << '#'; } cout << "\n"; } } return 0; }
#include <iostream> using namespace std; // #include<cstdio> int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; for (int j = 0; j < H; j++) { for (int i = 0; i < W; i++) { cout << '#'; } cout << "\n"; } cout << "\n"; } return 0...
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
89
#include <stdio.h> int main() { int H, W; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (int x = 0; x < H; x++) { for (int y = 0; y < W; y++) { printf("#"); } printf("\n"); } } return 0; }
#include <stdio.h> int main() { int H, W; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (int x = 0; x < H; x++) { for (int y = 0; y < W; y++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
95
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) break; for (int k = 1; k <= x; k++) { for (int j = 1; j <= y; j++) { cout << "#"; cout << endl; } } } cout << endl; }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) break; for (int k = 1; k <= x; k++) { for (int j = 1; j <= y; j++) { cout << "#"; } cout << endl; } cout << endl; } }
[["+", 0, 7, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 7, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 52, 8, 9, 0, 7, 8, 9, 0, 46], ["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
85
#include <stdio.h> int main() { int H[300], W[300], i, j, k; for (i = 0; i < 300; i++) { scanf("%d%d", &H[i], &W[i]); if (H[i] == 0 && W[i] == 0) { break; } } for (i = 0; i < 300; i++) { if (H[i] == 0 && W[i] == 0) { break; } for (k = 0; k < H[i]; k++) { for (j = 0; j <...
#include <stdio.h> int main() { int H[300], W[300], i, j, k; for (i = 0; i < 300; i++) { scanf("%d%d", &H[i], &W[i]); if (H[i] == 0 && W[i] == 0) { break; } } for (i = 0; i < 300; i++) { if (H[i] == 0 && W[i] == 0) { break; } for (k = 0; k < H[i]; k++) { for (j = 0; j <...
[["+", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
167
#include <iostream> #include <stdio.h> using namespace std; int main() { int h, w, j, i; while (1) { cin >> h >> w; if (h == 0 && w == 0) break; for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { printf("#"); } printf("\n"); } } return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { int h, w, j, i; while (1) { cin >> h >> w; if (h == 0 && w == 0) break; for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
94
#include <stdio.h> int main() { int n, m; while (1) { scanf("%d%d", &n, &m); if (n == 0) return 0; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { printf("#"); } printf("\n"); } } }
#include <stdio.h> int main() { int n, m; while (1) { scanf("%d%d", &n, &m); if (n == 0) return 0; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { printf("#"); } printf("\n"); } printf("\n"); } }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
87
#include <iostream> using namespace std; int main() { while (true) { int h, w; cin >> h >> w; if (h == 0 && w == 0) return 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << '#'; } cout << '\n'; } } }
#include <iostream> using namespace std; int main() { while (true) { int h, w; cin >> h >> w; if (h == 0 && w == 0) return 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cout << '#'; } cout << '\n'; } cout << '\n'; } }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
86
#include <stdio.h> int main(void) { int H = 0, W = 0; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); } printf("\n"); } } }
#include <stdio.h> int main(void) { int H = 0, W = 0; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); } printf("\n"); } printf("\n"); } }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include <stdio.h> int H, W, i, j; int main() { for (;;) { scanf(" %d %d", &H, &W); if (H == 0 && W == 0) { return 0; } for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } } }
#include <stdio.h> int H, W, i, j; int main() { for (;;) { scanf(" %d %d", &H, &W); if (H == 0 && W == 0) { return 0; } for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { printf("#"); } printf("\n"); } printf("\n"); } }
[["+", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
96
#include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; else { for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); } printf("\n"); } } } return 0; }
#include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) break; else { for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); } printf("\n"); } } printf("\n"); } ret...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
93
#include <iostream> using namespace std; int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) { break; } for (int i = 0; i < a; ++i) { for (int j = 0; j < b; ++j) { cout << "#" << flush; } cout << "#" << endl; } } }
#include <iostream> using namespace std; int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) { break; } for (int i = 0; i < a; ++i) { for (int j = 0; j < b; ++j) { cout << "#" << flush; } cout << endl; } cout << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
91
#include <iostream> #include <string> using namespace std; int main() { int m, n; while (1) { cin >> m >> n; if (m == 0 && n == 0) { return 0; } for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { cout << "#"; } cout << "\n"; } } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int m, n; while (1) { cin >> m >> n; if (m == 0 && n == 0) { return 0; } for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { cout << "#"; } cout << "\n"; } cout << "\n"; } r...
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
93
#include <stdio.h> int main(void) { int H, W, i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 0; i < H; i++) { for (j = 0; j < W; j++) printf("#"); printf("\n"); j = 0; } } return 0; }
#include <stdio.h> int main(void) { int H, W, i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 0; i < H; i++) { for (j = 0; j < W; j++) printf("#"); printf("\n"); j = 0; } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
98
#include <cstdio> #include <iostream> using namespace std; int main() { int count = 0, i = 0; int H[10000], W[10000]; while (true) { cin >> H[i] >> W[i]; if (H[i] == 0 && W[i] == 0) break; count++; i++; } for (int l = 0; l < count; l++) { for (int k = 0; k < H[l]; k++) { for (i...
#include <cstdio> #include <iostream> using namespace std; int main() { int count = 0, i = 0; int H[10000], W[10000]; while (true) { cin >> H[i] >> W[i]; if (H[i] == 0 && W[i] == 0) break; count++; i++; } for (int l = 0; l < count; l++) { for (int k = 0; k < H[l]; k++) { for (i...
[["+", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
145
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <stdio.h> #include <string.h> #include <string> #include <utility> #include <vector> using namespace std; typedef long long int ll; typedef long double ld; typedef vector<ll> vi; typedef vector<string> vs; typedef pair<ll, ll> P; typedef...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <stdio.h> #include <string.h> #include <string> #include <utility> #include <vector> using namespace std; typedef long long int ll; typedef long double ld; typedef vector<ll> vi; typedef vector<string> vs; typedef pair<ll, ll> P; typedef...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
195
#include <stdio.h> int main() { int H, W, i = 0, k = 0; while (1) { scanf("%d%d", &H, &W); if (H + W == 0) break; for (i = 0; i < H; ++i) { for (k = 0; k < W; ++k) { printf("#"); } printf("\n"); } } return 0; }
#include <stdio.h> int main() { int H, W, i = 0, k = 0; while (1) { scanf("%d%d", &H, &W); if (H + W == 0) break; for (i = 0; i < H; ++i) { for (k = 0; k < W; ++k) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include "iostream" using namespace std; #include <stdio.h> int main(int argc, char const *argv[]) { int H, W; int i, j = 0; while (true) { cin >> H >> W; if ((H == 0) && (W == 0)) { break; } for (j = 0; j < H; j++) { for (i = 0; i < W; ++i) { cout << "#"; } cout <...
#include "iostream" using namespace std; #include <stdio.h> int main(int argc, char const *argv[]) { int H, W; int i, j = 0; while (true) { cin >> H >> W; if ((H == 0) && (W == 0)) { break; } for (j = 0; j < H; j++) { for (i = 0; i < W; ++i) { cout << '#'; } cout <...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
110
#include <cstdio> #include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) { break; } else { for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } puts(""); } } } ret...
#include <cstdio> #include <iostream> using namespace std; int main() { int H, W; while (1) { cin >> H >> W; if (H == 0 && W == 0) { break; } else { for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { cout << "#"; } puts(""); } puts("");...
[["+", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35]]
1
95
#include <bits/stdc++.h> using namespace std; int main() { int h, w; scanf("%d %d", &h, &w); while (h && w) { for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { printf("#"); } printf("\n"); } scanf("%d %d", &h, &w); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int h, w; scanf("%d %d", &h, &w); while (h && w) { for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { printf("#"); } printf("\n"); } printf("\n"); scanf("%d %d", &h, &w); } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
100
#include <cmath> #include <cstdio> #include <iostream> #include <string> using namespace std; int main(void) { string input; while (getline(cin, input), !cin.eof()) { int H, W; sscanf(input.c_str(), "%d %d\n", &H, &W); if ((H | W) == 0) break; for (int i = 0; i < H; i++) { for (int...
#include <cmath> #include <cstdio> #include <iostream> #include <string> using namespace std; int main(void) { string input; while (getline(cin, input), !cin.eof()) { int H, W; sscanf(input.c_str(), "%d %d\n", &H, &W); if ((H | W) == 0) break; for (int i = 0; i < H; i++) { for (int...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
128
'use strict'; (function(stdin) { // declare function function square(array) { var w = array[0]; var h = array[1]; var outLine = []; for (var i = 0; i < w; i++) { outLine.push('#'); } outLine = outLine.join(''); var inLine = []; for (var j = 0; j < w - 2; j++) { inLine.push('.'); } inLine.pus...
'use strict'; (function(stdin) { // declare function function square(array) { var h = array[0]; var w = array[1]; var outLine = []; for (var i = 0; i < w; i++) { outLine.push('#'); } outLine = outLine.join(''); var inLine = []; for (var j = 0; j < w - 2; j++) { inLine.push('.'); } inLine.pus...
[["-", 0, 435, 8, 556, 0, 198, 0, 200, 141, 22], ["+", 0, 435, 8, 556, 0, 198, 0, 200, 141, 22], ["-", 63, 23, 0, 63, 8, 556, 0, 260, 0, 35], ["+", 0, 1, 0, 2, 3, 3, 0, 16, 17, 72], ["+", 0, 2, 3, 3, 0, 16, 12, 557, 0, 104], ["+", 0, 2, 3, 3, 0, 16, 12, 557, 0, 44]]
2
310
#include <stdio.h> int main(void) { int n, i; int a[10000] = {}; int min, max; int sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &a[i]); min = a[0]; for (i = 0; i < n; i++) { if (min > a[i]) min = a[i]; } max = a[0]; for (i = 0; i < n; i++) { if (max < a[i]) ...
#include <stdio.h> int main(void) { int n, i; int a[10000] = {}; int min, max; long int sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &a[i]); min = a[0]; for (i = 0; i < n; i++) { if (min > a[i]) min = a[i]; } max = a[0]; for (i = 0; i < n; i++) { if (max < a[...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
184
#include <stdio.h> int main(void) { int i, kazu; long sum = 0, a, min = 1000001, max = -1000001; scanf("%d", &kazu); for (i = 0; i < kazu; i++) { scanf("%ld", &a); if (a <= min) { min = a; } if (a >= max) { max = a; } sum = sum + a; } printf("%d %d %d\n", min, max, sum);...
#include <stdio.h> int main(void) { int i, kazu; long sum = 0, a, min = 1000001, max = -1000001; scanf("%d", &kazu); for (i = 0; i < kazu; i++) { scanf("%ld", &a); if (a <= min) { min = a; } if (a >= max) { max = a; } sum = sum + a; } printf("%d %d %ld\n", min...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
111
#include <stdio.h> int main(void) { long long int x, min = 0, max = 0, sum = 0; int n, i; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%lld", &x); if (x < min) { min = x; } if (x > max) { max = x; } sum += x; } printf("%lld %lld %lld\n", min, max, sum); return 0;...
#include <stdio.h> int main(void) { long long int x, min = 1000001, max = -1000001, sum = 0; int n, i; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%lld", &x); if (x < min) { min = x; } if (x > max) { max = x; } sum += x; } printf("%lld %lld %lld\n", min, max, sum);...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
0
111
#include <stdio.h> int main(void) { int n, a, i, min, max; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); sum += a; if (i == 0) { min = a; max = a; } else if (a > max) { max = a; } else if (a < min) { min = a; } } printf("%d %d...
#include <stdio.h> int main(void) { int n, a, i, min, max; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); sum += a; if (i == 0) { min = a; max = a; } else if (a > max) { max = a; } else if (a < min) { min = a; } } printf("%d %d...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
124
#include <stdio.h> int main(void) { int a[5], i, n, max, min, sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } min = a[0]; max = a[0]; for (i = 1; i < n; i++) { if (min > a[i]) { min = a[i]; } if (max < a[i]) { max = a[i]; } } for (i = 0; i < n;...
#include <stdio.h> int main(void) { int a[10000], i, n, max, min; long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } min = a[0]; max = a[0]; for (i = 1; i < n; i++) { if (min > a[i]) { min = a[i]; } if (max < a[i]) { max = a[i]; } } for (i ...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
171
#include <stdio.h> int main(void) { int ai, n, i, min, max; long sum; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &ai); if (i == 0) { min = ai; max = ai; sum = ai; } else { sum = sum + ai; if (min > ai) { min = ai; } if (max < ai) { ...
#include <stdio.h> int main(void) { int ai, n, i, min, max; long sum; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &ai); if (i == 0) { min = ai; max = ai; sum = ai; } else { sum = sum + ai; if (min > ai) { min = ai; } if (max < ai) { ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
128
#include <stdio.h> int main(int argc, char **argv) { int i, num, in, min, max, total; scanf("%d", &num); for (i = 0; i < num; i++) { scanf("%d", &in); if (i == 0) { min = max = total = in; } else { if (min > in) { min = in; } if (max < in) { max = in; }...
#include <stdio.h> int main(int argc, char **argv) { int i, num, in, min, max; long total; scanf("%d", &num); for (i = 0; i < num; i++) { scanf("%d", &in); if (i == 0) { min = max = total = in; } else { if (min > in) { min = in; } if (max < in) { max = in; ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
127
#include <stdio.h> int main(void) { int i, num, temp, min, max; unsigned long sum = 0; scanf("%d", &num); scanf("%d", &temp); min = temp; max = temp; sum += temp; for (i = 1; i < num; i++) { scanf("%d", &temp); if (min > temp) min = temp; else if (max < temp) max = temp; s...
#include <stdio.h> int main(void) { int i, num, temp, min, max; long sum = 0; scanf("%d", &num); scanf("%d", &temp); min = temp; max = temp; sum += temp; for (i = 1; i < num; i++) { scanf("%d", &temp); if (min > temp) min = temp; else if (max < temp) max = temp; sum += tem...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
125
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 70000 int main(void) { int i, n; long max, min, sum = 0; long temp; char *tok; char str[70000]; scanf("%d%*c", &n); fgets(str, MAX, stdin); // printf("%s\n", str); tok = strtok(str, " "); temp = atol(tok); // printf("...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 100000 int main(void) { int i, n; long max, min, sum = 0; long temp; char *tok; char str[MAX]; scanf("%d%*c", &n); fgets(str, MAX, stdin); // printf("%s\n", str); tok = strtok(str, " "); temp = atol(tok); // printf("%...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 22]]
0
169
int main(void) { int a[10000]; int n; int i; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } int min = 1000001; int max = -1000001; long sum = 0; for (i = 0; i < n; i++) { sum += a[i]; if (min > a[i]) min = a[i]; if (max < a[i]) max = a[i]; } print...
int main(void) { int a[10000]; int n; int i; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } int min = 1000001; int max = -1000001; long sum = 0; for (i = 0; i < n; i++) { sum += a[i]; if (min > a[i]) min = a[i]; if (max < a[i]) max = a[i]; } print...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
143
#include <stdio.h> int main() { int n, x, min, max, sum; min = 0, max = 0, sum = 0; scanf("%d", &n); if (n != 0) { scanf("%d", &x); min = max = sum = x; } int i; for (i = 1; i <= n - 1; i++) { scanf("%d", &x); if (min > x) { min = x; } if (max < x) { max = x; } ...
#include <stdio.h> int main() { int n, x, min, max; long long sum; min = 0, max = 0, sum = 0; scanf("%d", &n); if (n > 0) { scanf("%d", &x); min = max = sum = x; } int i; for (i = 1; i <= n - 1; i++) { scanf("%d", &x); if (min > x) { min = x; } if (max < x) { max = x;...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
142
#include <stdio.h> int main() { int a, n, ai; long long max, min, sum; min = 1000000; max = -1000000; scanf("%d", &n); sum = 0; for (a = 1; n >= a; a++) { scanf("%d", &ai); if (min >= ai) min = ai; else if (max <= ai) max = ai; sum = ai + sum; } printf("%lld %lld %lld\n...
#include <stdio.h> int main() { int a, n, ai; long long max, min, sum; min = 1000000; max = -1000000; scanf("%d", &n); sum = 0; for (a = 1; n >= a; a++) { scanf("%d", &ai); if (min >= ai) min = ai; if (max <= ai) max = ai; sum = ai + sum; } printf("%lld %lld %lld\n", mi...
[["-", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95]]
0
114
#include <stdio.h> int main() { int n, i, max = -1000000, min = 1000000; double sum = 0; scanf("%d", &n); int a; for (i = 0; i < n; i++) { scanf("%d", &a); if (a < min) { min = a; } if (a > max) { max = a; } sum = sum + a; } printf("%d %d %d\n", min, max, sum); re...
#include <stdio.h> int main() { int n, i, max = -1000000, min = 1000000; double sum = 0; scanf("%d", &n); int a; for (i = 0; i < n; i++) { scanf("%d", &a); if (a < min) { min = a; } if (a > max) { max = a; } sum = sum + a; } printf("%d %d %.0f\n", min, max, sum); ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
111
#include <stdio.h> int main() { int n, m, i; int min = 1000001, max = -1000001; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &m); if (m < min) min = m; if (m > max) max = m; sum += m; } printf("%d %d %d\n", min, max, sum); return 0; }
#include <stdio.h> int main() { int n, m, i; int min = 1000001, max = -1000001; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &m); if (m < min) min = m; if (m > max) max = m; sum += m; } printf("%d %d %lld\n", min, max, sum); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
106
#include <stdio.h> int main(void) { int i; int n; int max; int min; long int sum = 0; int a[10000]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } max = min = a[0]; for (i = 0; i < n; i++) { if (a[i] > max) { max = a[i]; } else if (a[i] < min) { min = a[i...
#include <stdio.h> int main(void) { int i; int n; int max; int min; long int sum = 0; int a[10000]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } max = min = a[0]; for (i = 0; i < n; i++) { if (a[i] > max) { max = a[i]; } else if (a[i] < min) { min = a[i...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
156
#include <stdio.h> int main(void) { int a[10000]; int n; int i; long s = 0; int h, l; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); s += a[i]; } l = 100001; h = -100001; for (i = 0; i < n; i++) { if (l > a[i]) l = a[i]; if (h < a[i]) h = a[i]; } ...
#include <stdio.h> int main(void) { int a[10000]; int n; int i; long s = 0; int h, l; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); s += a[i]; } l = 1000001; h = -1000001; for (i = 0; i < n; i++) { if (l > a[i]) l = a[i]; if (h < a[i]) h = a[i]; ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
0
148
#include <stdio.h> int main(void) { int n; int i = 0; int a; int min = 1000000; int max = -1000000; int sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); if (min > a) min = a; if (max < a) max = a; sum = sum + a; } printf("%d %d %d\n", min, max, sum)...
#include <stdio.h> int main(void) { int n; int i = 0; int a; int min = 1000000; int max = -1000000; long long int sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); if (min > a) min = a; if (max < a) max = a; sum = sum + a; } printf("%d %d %lld\n", mi...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
113
#include <stdio.h> int main(void) { int a, i, max, mini, n, sum; max = -1000000; mini = 1000000; sum = 0; scanf("%d", &n); for (i = 1; i <= n; i = i + 1) { scanf("%d", &a); if (mini > a) mini = a; if (max < a) max = a; sum = sum + a; } printf("%d %d %d\n", mini, max, sum); ...
#include <stdio.h> int main(void) { int a, i, max, mini, n; long long int sum; max = -1000000; mini = 1000000; sum = 0; scanf("%d", &n); for (i = 1; i <= n; i = i + 1) { scanf("%d", &a); if (mini > a) mini = a; if (max < a) max = a; sum = sum + a; } printf("%d %d %lld\n", ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
115
#include <stdio.h> int main(void) { int n, ai, i; long int x, y, z; x = -1000000; y = 1000000; z = 0; scanf("%d", &n); for (i = 1; i < n; i++) { scanf("%d", &ai); if (ai > y) { y = ai; } if (ai > x) { x = ai; } z = z + ai; } printf("%d %d ...
#include <stdio.h> int main(void) { int n, ai, i; long int x, y, z; x = 1000000; y = -1000000; z = 0; scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%d", &ai); if (ai > y) { y = ai; } if (ai < x) { x = ai; } z = z + ai; } printf("%d %...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
118
#include <stdio.h> int main() { int n; int sum = 0; int max; int min; int x; scanf("%d", &n); int i; for (i = 0; i < n; i++) { scanf("%d", &x); if (i == 0) min = max = x; if (max < x) max = x; if (min > x) min = x; sum += x; } printf("%d %d %d\n", min, max, sum...
#include <stdio.h> int main() { int n; long long int sum = 0; int max; int min; int x; scanf("%d", &n); int i; for (i = 0; i < n; i++) { scanf("%d", &x); if (i == 0) min = max = x; if (max < x) max = x; if (min > x) min = x; sum += x; } printf("%d %d %lld\n", m...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
116
#include <stdio.h> int main() { int a; int b = -1000000; int c = 1000000; long long d = 0; int e; int i; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &e); if (e < c) c = e; if (e > b) b = e; d = d + e; } printf("%d %d %d\n", c, b, d); return 0; }
#include <stdio.h> int main() { int a; int b = -1000000; int c = 1000000; long long int d = 0; int e; int i; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &e); if (e < c) c = e; if (e > b) b = e; d = d + e; } printf("%d %d %lld\n", c, b, d); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
111
#include <stdio.h> int main(void) { int n, i, min, max, sum; sum = 0; int a[10000]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); }; min = a[0]; max = a[0]; for (i = 0; i < n; i++) { sum = sum + a[i]; }; for (i = 0; i < n; i++) { if (a[i] < min) { m...
#include <stdio.h> int main(void) { int n, i, min, max; long int sum; sum = 0; int a[10000]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); }; min = a[0]; max = a[0]; for (i = 0; i < n; i++) { sum = sum + a[i]; }; for (i = 0; i < n; i++) { if (a[i] < min...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
196
#include <stdio.h> #define NUMBER 10000 int main(void) { int i, x[NUMBER]; int num, max, min, sun; scanf("%d", &num); for (i = 0; i < num; i++) { scanf("%d", &x[i]); sun = sun + x[i]; } min = max = x[0]; for (i = 1; i < num; i++) { if (x[i] > max) max = x[i]; if (x[i] < min) ...
#include <stdio.h> #define NUMBER 10000 int main(void) { int i, x[NUMBER]; long long num, max, min, sun; scanf("%d", &num); for (i = 0; i < num; i++) { scanf("%d", &x[i]); sun = sun + x[i]; } min = max = x[0]; for (i = 1; i < num; i++) { if (x[i] > max) max = x[i]; if (x[i] < m...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
149
#include <stdio.h> int main() { int n, min, max, sum = 0; int val; int n_memoly; scanf("%d", &n); n_memoly = n; while (n != 0) { scanf("%d", &val); if (n_memoly == n) { max = val; min = val; sum = val; n--; continue; } sum += val; if (min > val) { m...
#include <stdio.h> int main() { int n, min, max; double sum = 0; int val; int n_memoly; scanf("%d", &n); n_memoly = n; while (n != 0) { scanf("%d", &val); if (n_memoly == n) { max = val; min = val; sum = val; n--; continue; } sum += val; if (min > val) ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
130
#include <stdio.h> #include <string.h> int main(void) { int num, i; long int x, min = 1000000, max = -1000000, sum = 0; scanf("%d", &num); for (i = 0; i < num; i++) { scanf("%d", &x); sum = sum + x; if (min >= x) { min = x; } if (max <= x) { max = x; } } printf("%ld %ld ...
#include <stdio.h> #include <string.h> int main(void) { int num, i; long int x = 0, min = 1000000, max = -1000000, sum = 0; scanf("%d", &num); for (i = 0; i < num; i++) { scanf("%ld", &x); sum = sum + x; if (min >= x) { min = x; } if (max <= x) { max = x; } } printf("%ld...
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
114
#include <stdio.h> int main(void) { int x, k, a[10000] = {0}; int max = -10001, min = 10001, sum = 0; scanf("%d", &k); for (x = 0; x < k; x++) { scanf("%d", &a[x]); if (a[x] > max) max = a[x]; if (a[x] < min) min = a[x]; sum += a[x]; } printf("%d %d %d\n", min, max, sum); r...
#include <stdio.h> int main(void) { int x, k, a[10000] = {0}; int max = -1000001, min = 1000001; long sum = 0; scanf("%d", &k); for (x = 0; x < k; x++) { scanf("%d", &a[x]); if (a[x] > max) max = a[x]; if (a[x] < min) min = a[x]; sum += a[x]; } printf("%d %d %ld\n", min, max...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
130
#include <stdio.h> #include <stdlib.h> int main(void) { int n; int i; int *val; int min; int max; long int sum = 0; scanf("%d", &n); val = (int *)malloc(sizeof(int) * n); if (val == NULL) { exit(1); } for (i = 0; i < n; i++) { scanf("%d", val + i); sum += val[i]; } min = val[0...
#include <stdio.h> #include <stdlib.h> int main(void) { int n; int i; int *val; int min; int max; long sum = 0; scanf("%d", &n); val = (int *)malloc(sizeof(int) * n); if (val == NULL) { exit(1); } for (i = 0; i < n; i++) { scanf("%d", val + i); sum += val[i]; } min = val[0]; ...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
192
#include <stdio.h> int main(void) { int a[11000], n, i, max, min, sum; scanf("%d %d", &n, &a[1]); max = a[1]; min = a[1]; sum = a[1]; for (i = 2; i <= n; i++) { scanf("%d", &a[i]); if (max < a[i]) { max = a[i]; } if (min > a[i]) { min = a[i]; } sum = sum + a[i]; } pr...
#include <stdio.h> int main(void) { int a[11000], n, i, max, min; long long int sum; scanf("%d %d", &n, &a[1]); max = a[1]; min = a[1]; sum = a[1]; for (i = 2; i <= n; i++) { scanf("%d", &a[i]); if (max < a[i]) { max = a[i]; } if (min > a[i]) { min = a[i]; } sum = sum ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
152
#include <math.h> #include <stdio.h> int main(void) { double s[10001], n, max, min, sum; int a; scanf("%lf", &n); max = -10000000000; min = -1; sum = 0; for (a = 0; a < n; a++) { scanf("%lf", &s[a]); if (s[a] > max) { max = s[a]; } if (s[a] < min) { min = s[a]; } sum = ...
#include <math.h> #include <stdio.h> int main(void) { double s[10001], n, max, min, sum; int a; scanf("%lf", &n); max = -10000000000; min = 10000000000; sum = 0; for (a = 0; a < n; a++) { scanf("%lf", &s[a]); if (s[a] > max) { max = s[a]; } if (s[a] < min) { min = s[a]; } ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
0
140
#include <limits.h> #include <stdio.h> int main(void) { int n, i, x; int min = INT_MAX, max = INT_MIN; long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &x); sum += x; if (max < x) { max = x; } if (min > x) { min = x; } } printf("%d %d %d\n", min, ...
#include <limits.h> #include <stdio.h> int main(void) { int n, i, x; int min = INT_MAX, max = INT_MIN; long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &x); sum += x; if (max < x) { max = x; } if (min > x) { min = x; } } printf("%d %d %ld\n", min,...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
112
#include <stdio.h> int main() { int data[5], n, i, max, min; long long sum = 0; scanf("%d\n", &n); for (i = 0; i < n; i++) { scanf("%d", &data[i]); sum += data[i]; } i = 0; min = data[i]; max = data[i]; for (i = 1; i < n; i++) { if (min > data[i]) { min = data[i]; } if (max <...
#include <stdio.h> int main() { int data[10000], n, i, max, min; long long sum = 0; scanf("%d\n", &n); for (i = 0; i < n; i++) { scanf("%d", &data[i]); sum += data[i]; } i = 0; min = data[i]; max = data[i]; for (i = 1; i < n; i++) { if (min > data[i]) { min = data[i]; } if (m...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]]
0
160
#include <stdio.h> int main(void) { int n; int x; int num; int min = 1000001; int max = -1000001; long total = 0; scanf("%d", &n); for (x = 0; x < n; x++) { scanf("%d", &num); if (min > num) min = num; if (max < num) max = num; total += num; } printf("%d %d %l\n", min, ...
#include <stdio.h> int main(void) { int n; int x; int num; int min = 1000001; int max = -1000001; long total = 0; scanf("%d", &n); for (x = 0; x < n; x++) { scanf("%d", &num); if (min > num) min = num; if (max < num) max = num; total += num; } printf("%d %d %ld\n", min,...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
111
#include <stdio.h> int main(void) { int n; int a[10001]; int max = -1000002; int min = 1000002; int x; int y; int z = 0; scanf("%d", &n); for (x = 0; x < n; x++) { scanf("%d", &a[x]); } for (y = 0; y < n; y++) { if (max < a[y]) { max = a[y]; } if (min > a[y]) min = a...
#include <stdio.h> int main(void) { int n; int a[10001]; int max = -1000002; int min = 1000002; int x; int y; long long z = 0; scanf("%d", &n); for (x = 0; x < n; x++) { scanf("%d", &a[x]); } for (y = 0; y < n; y++) { if (max < a[y]) { max = a[y]; } if (min > a[y]) { ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
152
#include <stdio.h> int main() { int i, n, a[10000]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } int min = a[0], max = a[0], sum = 0; for (i = 0; i < n; i++) { if (a[i] < min) { min = a[i]; } else if (a[i] > max) { max = a[i]; } sum += a[i]; } prin...
#include <stdio.h> int main() { int i, n, a[10000]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } int min = a[0], max = a[0]; long long int sum = 0; for (i = 0; i < n; i++) { if (a[i] < min) { min = a[i]; } else if (a[i] > max) { max = a[i]; } sum += a...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
151
#include <stdio.h> int main(void) { int n, i, input, max = -1000001, min = 1000001; long long int sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &input); sum += input; if (input > max) max = input; if (input < min) min = input; } printf("%d %d %d", min, max, su...
#include <stdio.h> int main(void) { int n, i, input, max = -1000001, min = 1000001; long long int sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &input); sum += input; if (input > max) max = input; if (input < min) min = input; } printf("%d %d %lld\n", min, max...
[["-", 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
106
#include <stdio.h> int main(void) { int i, a, min, max; int b[10000]; long long sum; sum = 0; min = 1000000; max = -1000000; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &b[i]); if (b[i] < min) { min = b[i]; } if (b[i] > max) { max = b[i]; } sum = sum ...
#include <stdio.h> int main(void) { int i, a, min, max; int b[10000]; long long sum; sum = 0; min = 1000000; max = -1000000; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &b[i]); if (b[i] < min) { min = b[i]; } if (b[i] > max) { max = b[i]; } sum = sum ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
140
#include <limits.h> #include <stdio.h> int main() { int i, n, a; int min = INT_MAX, max = INT_MIN; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); if (a < min) min = a; if (max < a) max = a; sum += a; } printf("%d %d %d\n", min, max, sum); retu...
#include <limits.h> #include <stdio.h> int main() { int i, n, a; int min = INT_MAX, max = INT_MIN; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); if (a < min) min = a; if (max < a) max = a; sum += a; } printf("%d %d %lld\n", min, max, sum); re...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
108
#include <stdio.h> int main(void) { int a; int b; int z; int min; int max; int sum; min = 10000000000000; max = -10000000000000; sum = 0; scanf("%d", &a); for (b = 0; b < a; b++) { scanf("%d", &z); if (min > z) { min = z; } if (max < z) { max = z; } sum = s...
#include <stdio.h> int main(void) { int a; int b; int z; int min; int max; long int sum; min = 1000000; max = -1000000; sum = 0; scanf("%d", &a); for (b = 0; b < a; b++) { scanf("%d", &z); if (min > z) { min = z; } if (max < z) { max = z; } sum = sum + z; ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
121
#include <stdio.h> int main(void) { int a, b[10000], i, j; int c = 1000000; int d = -1000000; int e = 0; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &b[i]); } for (i = 0; i < a; i++) { if (b[i] < c) { c = b[i]; } if (b[i] > d) { d = b[i]; } e = e + b[i]; ...
#include <stdio.h> int main(void) { int a, b[10000], i, j; int c = 1000000; int d = -1000000; unsigned long long int e = 0; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &b[i]); } for (i = 0; i < a; i++) { if (b[i] < c) { c = b[i]; } if (b[i] > d) { d = b[i]; } ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
151
#include <stdio.h> int main(void) { int n; int x; int i; int sum, min, max; scanf("%d", &n); sum = 0; min = 1000000; max = -1000000; for (i = 0; i < n; i++) { scanf("%d", &x); sum += x; if (x < min) { min = x; } if (x > max) { max = x; } } printf("%d %d %d\n", m...
#include <stdio.h> int main(void) { int n; int x; int i; long long sum; int min, max; scanf("%d", &n); sum = 0; min = 1000000; max = -1000000; for (i = 0; i < n; i++) { scanf("%d", &x); sum += x; if (x < min) { min = x; } if (x > max) { max = x; } } printf("%d...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
117