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 |
|---|---|---|---|---|
// itp1_topic4_a
#include <bits/stdc++.h>
using namespace std;
int main() {
//小数点以下12桁を表示させるためのおまじない。
cout << fixed << setprecision(12);
double r; // rは実数
cin >> r;
double PI = acos(1.0); // PI
double area = r * r * PI;
double cir = (r + r) * PI;
cout << area << " " << cir << endl;
return 0;
}
| // itp1_topic4_a
#include <bits/stdc++.h>
using namespace std;
int main() {
//小数点以下12桁を表示させるためのおまじない。
cout << fixed << setprecision(12);
double r; // rは実数
cin >> r;
double PI = acos(-1); // cos(π) = -1 -> acos(-1) = π
double area = r * r * PI;
double cir = (r + r) * PI;
cout << area << " " << cir << ... | [["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13]] | 1 | 75 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, A, B;
cin >> r;
A = r * r * 3.141592653589;
B = r * 3.141592653589;
std::cout << std::fixed;
std::cout << std::setprecision(6) << A << " " << B << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, A, B;
cin >> r;
A = r * r * 3.141592653589;
B = 2 * r * 3.141592653589;
std::cout << std::fixed;
std::cout << std::setprecision(6) << A << " " << B << endl;
return 0;
}
| [["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]] | 1 | 71 |
#include <stdio.h>
int main(void) {
float r;
scanf("%f", &r);
printf("%f ", r * 2 * 3.141592653589);
printf("%f\n", r * r * 3.141592653589);
return (0);
}
| #include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%f ", r * r * 3.141592653589);
printf("%f\n", r * 2 * 3.141592653589);
return (0);
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 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, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12... | 1 | 54 |
#include <iostream>
using namespace std;
const double PI = 3.141592653589;
int main() {
double r, S, L;
cin >> r;
S = r * r * PI;
L = 2 * PI * r;
printf("%f %f/n", S, L);
return 0;
}
| #include <iostream>
using namespace std;
const double PI = 3.141592653589;
int main() {
double r, S, L;
cin >> r;
S = r * r * PI;
L = 2 * PI * r;
printf("%f %f\n", S, L);
return 0;
}
| [["-", 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]] | 1 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
double r;
cin >> r;
double p = 3.14159265;
double s = r * r * p;
double l = 2 * r * p;
cout << s << " " << l << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
double r;
cin >> r;
double p = 3.14159265359;
double s = r * r * p;
double l = 2 * r * p;
cout << s << " " << l << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(6);
double r, p = 3.1415926532;
cin >> r;
cout << r * r * p << " " << 2 * r * p << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(6);
double r, p = 3.141592653589;
cin >> r;
cout << r * r * p << " " << 2 * r * p << endl;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 52 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, pi = 3.141592;
cin >> r;
cout << fixed;
cout << setprecision(6) << r * r * pi << " " << 2 * r * pi << "\n";
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, pi = 3.14159265359;
cin >> r;
cout << fixed;
cout << setprecision(8) << r * r * pi << " " << 2 * r * pi << "\n";
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double r;
cin >> r;
double pi = 3.141592;
cout << fixed << setprecision(6);
cout << r * r * pi << " " << 2 * r * pi << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double r;
cin >> r;
double pi = 3.14159265359;
cout << fixed << setprecision(7);
cout << r * r * pi << " " << 2 * r * pi << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13]] | 1 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here!
double in;
cin >> in;
cout << fixed << setprecision(7) << in * in * 3.141592653 << " "
<< in * 2 * 3.141592653 << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here!
double in;
cin >> in;
cout << fixed << setprecision(6) << in * in * 3.14159265358979 << " "
<< in * 2 * 3.14159265358979 << endl;
return 0;
}
| [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 51 |
#include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
printf("%.6f %.6f\n", r * r * 3.14159265, r * 2 * 3.14159265);
return 0;
}
| #include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
printf("%.6f %.6f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 44 |
#include <iostream>
using namespace std;
int main() {
double r;
scanf("%lf", &r);
double pi = 3.141592653589;
printf("%.8f %.8f\n", 2 * r * pi, r * r * pi);
}
| #include <iostream>
using namespace std;
int main() {
double r;
scanf("%lf", &r);
double pi = 3.141592653589;
printf("%.8f %.8f\n", r * r * pi, 2 * r * pi);
}
| [["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13]] | 1 | 50 |
#include <iomanip>
#include <iostream>
int main() {
int r;
std::cin >> r;
double a, b;
a = 1.0 * 2 * r * 3.141592653589;
b = 1.0 * r * r * 3.141592653589;
std::cout << std::fixed << std::setprecision(7);
std::cout << a << " " << b << std::endl;
return 0;
}
| #include <iomanip>
#include <iostream>
int main() {
double r;
std::cin >> r;
double a, b;
a = 1.0 * r * r * 3.141592653589;
b = 1.0 * 2 * r * 3.141592653589;
std::cout << std::fixed << std::setprecision(10);
std::cout << a << " " << b << std::endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1,... | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
int r;
double c1, c2;
cin >> r;
double y = acos(-1);
c1 = (r * r) * y;
c2 = (r * 2) * y;
cout << c1 << c2 << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
double r;
double c1, c2;
cin >> r;
double y = acos(-1);
c1 = (r * r) * y;
c2 = (r * 2) * y;
cout << c1 << " " << c2 << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 72 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
cin >> r;
double pi = 3.14159265;
printf("%.6f %.6f\n", pi * r * r, 2 * pi * r);
return 0;
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
cin >> r;
double pi = 3.141592653589793238;
printf("%.6f %.6f\n", pi * r * r, 2 * pi * r);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 49 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double PI = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", 2 * r * PI, r * r * PI);
return 0;
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double PI = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * PI, 2 * r * PI);
return 0;
}
| [["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13]] | 1 | 49 |
//============================================================================
// Name : SyousuuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : SyousuuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 69 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
double r, m = 0, e = 0; //,p=M_PI;
scanf("%f", &r);
m = M_PI * r * r;
e = M_PI * 2 * r;
printf("%.6f %.6f\n", m, e);
return 0;
}
| #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
double r, m = 0, e = 0; //,p=M_PI;
scanf("%lf", &r);
m = M_PI * r * r;
e = M_PI * 2 * r;
printf("%.6lf %.6lf\n", m, e);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 72 |
#include <cmath>
#include <cstdio>
int main() {
double r;
scanf("%lf", &r);
double area = M_PI * r * r;
double circle = 2.0 * M_PI * 2;
printf("%.5f %.5f\n", area, circle);
return 0;
}
| #include <cmath>
#include <cstdio>
int main() {
double r;
scanf("%lf", &r);
double area = M_PI * r * r;
double circle = 2.0 * M_PI * r;
printf("%.5f %.5f\n", area, circle);
return 0;
}
| [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 56 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, S, L;
scanf("%lf", &r);
S = 3.14159265 * r * r;
L = 2 * 3.14159265 * r;
printf("%.6lf %.6lf\n", S, L);
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, S, L;
scanf("%lf", &r);
S = 3.141592653589 * r * r;
L = 2 * 3.141592653589 * r;
printf("%.6lf %.6lf\n", S, L);
}
| [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 1 | 59 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a = 0, c = 0, d = 0, e = 0;
cin >> a;
c = 3.141592653589;
d = 2 * c * a;
e = a * a * c;
cout << fixed << setprecision(5) << d << " " << e << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a = 0, c = 0, d = 0, e = 0;
cin >> a;
c = 3.141592653589;
d = 2 * c * a;
e = a * a * c;
cout << fixed << setprecision(6) << e << " " << d << endl;
return 0;
}
| [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 77 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
float pi = 3.141592653589;
int r;
cin >> r;
double menseki = pi * r * r;
double enshuu = 2 * pi * r;
printf("%f %f", menseki, enshuu);
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double pi = 3.141592653589;
// int r;
double r;
cin >> r;
double menseki = pi * r * r;
double enshuu = 2 * pi * r;
printf("%f %f", menseki, enshuu);
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 58 |
#include <math.h>
#include <stdio.h>
int main() {
double a;
scanf("%d", &a);
printf("%lf %lf\n", M_PI * a * a, 2 * M_PI * a);
}
| #include <math.h>
#include <stdio.h>
int main() {
double a;
scanf("%lf", &a);
printf("%lf %lf\n", M_PI * a * a, 2 * M_PI * a);
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 43 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, S, l, pi;
cin >> r;
pi = 3.141592653589;
S = pi * r * r;
l = 2 * pi * r;
cout << setprecision(9) << S << " " << l << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, S, l, pi;
cin >> r;
pi = 3.141592653589;
S = pi * r * r;
l = 2 * pi * r;
cout << setprecision(20) << S << " " << l << endl;
return 0;
}
| [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(6);
double r, pi = acos(-1);
cin >> r;
cout << (double)r * r * pi << (double)2 * r * pi << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(6);
double r, pi = acos(-1);
cin >> r;
cout << (double)r * r * pi << " " << (double)2 * r * pi << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 60 |
#include <cstdio>
int main() {
double r, s, l;
scanf("%lf", &r);
s = 3.14 * r * r;
l = 3.14 * r * 2;
printf("%lf %lf\n", s, l);
return 0;
}
| #include <cstdio>
int main() {
double r, s, l;
scanf("%lf", &r);
s = 3.14159265358979 * r * r;
l = 3.14159265358979 * r * 2;
printf("%lf %lf\n", s, l);
return 0;
}
| [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13]] | 1 | 56 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, p = 3.14159;
cin >> r;
printf("%f %f", r * r * p, 2 * r * p);
return 0;
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, p = 3.141592653589;
cin >> r;
printf("%f %f\n", r * r * p, 2 * r * p);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 47 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, p = 3.14159;
cin >> r;
printf("%f %f", r * r * p, 2 * r * p);
return 0;
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, p = 3.141592653589;
cin >> r;
printf("%f %f", r * r * p, 2 * r * p);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 47 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r, S, L, PI = 3.14159265;
cin >> r;
S = PI * r * r;
L = 2 * PI * r;
printf("%lf %lf\n", S, L);
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r, S, L, PI = 3.14159265358979;
cin >> r;
S = PI * r * r;
L = 2 * PI * r;
printf("%lf %lf\n", S, L);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 60 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.1415926535;
cin >> r;
double area = pi * r * r;
double circumference = 2 * r * pi;
cout << setprecision(6);
cout << area << " " << circumference << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.14159265358979;
cin >> r;
double area = pi * r * r;
double circumference = 2 * r * pi;
cout << fixed << setprecision(6);
cout << area << " " << circumference << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 66 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, are, cir;
double p = 3.141592653589;
cin >> r;
are = 2 * p * r;
cir = p * r * r;
printf("%f %f\n", are, cir);
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, are, cir;
double p = 3.141592653589;
cin >> r;
are = 2 * p * r;
cir = p * r * r;
printf("%f %f\n", cir, are);
}
| [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 58 |
#include <iostream>
using namespace std;
int main() {
double r = 3.141592653589, x;
cin >> x;
cout << x * x * r << " " << 2 * x * r << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
double r = 3.141592653589, x;
cin >> x;
cout << fixed << x * x * r << " " << fixed << 2 * x * r << endl;
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 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 | 46 |
#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
double r, p;
p = 3.141592;
cin >> r;
cout << setprecision(5) << fixed << r * r * p << " " << 2 * r * p << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main()
{
double r, p;
p = 3.14159265358979;
cin >> r;
cout << setprecision(8) << fixed << r * r * p << " " << 2 * r * p << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 57 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int r;
double area, shu, p;
p = 3.14159265;
cin >> r;
area = r * r * p;
shu = 2 * p * r;
cout << fixed << setprecision(6) << area << " " << shu << endl;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
double area, shu, p;
p = 3.14159265359;
cin >> r;
area = r * r * p;
shu = 2 * p * r;
cout << fixed << setprecision(6) << area << " " << shu << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 67 |
#include <stdio.h>
int main() {
double PI = 3.14159265358979323;
double in;
scanf("%lf", &in);
printf("%lf %lf\n", (double)(in * 2 * PI), (double)(in * in * PI));
return 0;
}
| #include <stdio.h>
int main() {
double PI = 3.14159265358979323;
double in;
scanf("%lf", &in);
printf("%lf %lf\n", (double)(in * in * PI), (double)(in * 2 * PI));
return 0;
}
| [["-", 0, 74, 51, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 74, 51, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 74, 51, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 74, 51, 23, 0, 16, 31, 16, 12, 13]] | 1 | 59 |
#include <iostream>
using namespace std;
int main(void) {
double r, PI = 3.141592653589;
cin >> r;
cout << r * r * PI << " " << 2 * r * PI << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
double r, PI = 3.141592653589;
cin >> r;
cout << fixed << r * r * PI << " " << 2 * r * PI << endl;
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 47 |
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <st... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <st... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 94 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double PI = 3.141592653589;
double r;
cin >> r;
printf("%.6f %.6f/n", PI * r * r, 2.0 * r * PI);
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double PI = 3.141592653589;
double r;
cin >> r;
printf("%.6f %.6f\n", PI * r * r, 2.0 * r * PI);
return 0;
}
| [["-", 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]] | 1 | 48 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
double const PI = 3.14159265;
cout << setiosflags(ios::fixed) << setprecision(7) << PI * a * a << " "
<< PI * a * 2 << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
double const PI = 3.14159265358979323846;
cout << setiosflags(ios::fixed) << setprecision(7) << PI * a * a << " "
<< PI * a * 2 << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 62 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 106 |
#include <iomanip>
#include <iostream>
int main() {
double a = 0;
double p = 3.1415926;
std::cin >> a;
std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(6)
<< (double)p * a * a << " " << std::setiosflags(std::ios::fixed)
<< std::setprecision(6) << (double)a * 2 * p << s... | #include <iomanip>
#include <iostream>
int main() {
double a = 0;
double p = 3.141592653589;
std::cin >> a;
std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(6)
<< (double)p * a * a << " " << std::setiosflags(std::ios::fixed)
<< std::setprecision(6) << (double)a * 2 * p... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 95 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double s, v;
const static double pi = 4 * atan(1.0);
cin >> r;
s = 2.0 * pi * r;
v = 0.5 * s * r;
printf("%.6f %.6f", s, v);
return (0);
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double s, v;
const static double pi = 4 * atan(1.0);
cin >> r;
s = 2.0 * pi * r;
v = 0.5 * s * r;
printf("%.6f %.6f", v, s);
return (0);
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 72 |
#include <cstdio>
#define _USE_MATH_DEFINES
#include <cmath>
int main() {
double a;
scanf("%d", &a);
printf("%f %f", a * a * M_PI, 2 * a * M_PI);
return 0;
} | #include <cstdio>
#define _USE_MATH_DEFINES
#include <cmath>
int main() {
double a;
scanf("%lf", &a);
printf("%f %f\n", a * a * M_PI, 2 * a * M_PI);
return 0;
} | [["-", 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]] | 1 | 47 |
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] text = str.split(" ");
int a = Integer.parseInt(text[0]);
String b = text[1];
int ... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] text = str.split(" ");
int a = Integer.parseInt(text[0]);
String b = text[1];
int ... | [["-", 15, 15, 0, 16, 31, 492, 3, 4, 0, 252], ["+", 0, 16, 31, 492, 3, 4, 0, 5, 0, 62], ["+", 0, 16, 31, 492, 3, 4, 0, 5, 0, 491], ["-", 0, 52, 8, 196, 0, 503, 39, 506, 0, 507], ["-", 0, 52, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 0, 52, 8, 196, 0, 503, 49, 200, 0, 32], ["-", 0, 52, 8, 196, 0, 503, 49, 200, 51, 499], ... | 3 | 265 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String str = br.readLine();
String[] strAry = str.split(" ");
int a = Integer.parseInt(strAry[0]);
Strin... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String str = br.readLine();
String[] strAry = str.split(" ");
int a = Integer.parseInt(strAry[0]);
Strin... | [["-", 0, 57, 15, 15, 0, 492, 3, 4, 0, 252], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 62], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 57, 15, 15, 0, 492, 3, 4, 0, 252]] | 3 | 208 |
#include <stdio.h>
#include <string.h>
int main() {
int a;
int b;
char op;
while (1) {
scanf("%d %c %d", &a, &op, &b);
if (op == '?') {
break;
} else if (op == "+") {
printf("%d\n", a + b);
} else if (op == "-") {
printf("%d\n", a - b);
} else if (op == "*") {
printf(... | #include <stdio.h>
#include <string.h>
int main() {
int a;
int b;
char op;
while (1) {
scanf("%d %c %d", &a, &op, &b);
if (op == '?') {
break;
} else if (op == '+') {
printf("%d\n", a + b);
} else if (op == '-') {
printf("%d\n", a - b);
} else if (op == '*') {
printf(... | [["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 148 |
#include <stdio.h>
int main() {
int a[100], b[100], i = 0, j;
char op[100];
while (1) {
scanf("%d %c %d", &a[i], &op[i], &b[i]);
if (op[i] == '?')
break;
i++;
}
printf("\n");
for (j = 0; j < i; j++) {
if (op[j] == '+')
printf("%d", a[j] + b[j]);
else if (op[j] == '-')
... | #include <stdio.h>
int main() {
int a[100], b[100], i = 0, j;
char op[100];
while (1) {
scanf("%d %c %d", &a[i], &op[i], &b[i]);
if (op[i] == '?')
break;
i++;
}
for (j = 0; j < i; j++) {
if (op[j] == '+')
printf("%d", a[j] + b[j]);
else if (op[j] == '-')
printf("%d", a[j... | [["-", 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]] | 0 | 225 |
#include <stdio.h>
int main() {
int a, b, c, d;
while (1) {
scanf("%d %c %d", &a, &c, &b);
if (c == "+") {
d = a + b;
} else if (c == "-") {
d = a - b;
} else if (c == "*") {
d = a * b;
} else if (c == "/") {
d = a / b;
} else
break;
printf("%d\n", d);
}... | #include <stdio.h>
int main() {
int a, b, c, d;
while (1) {
scanf("%d %c %d", &a, &c, &b);
if (c == '+') {
d = a + b;
} else if (c == '-') {
d = a - b;
} else if (c == '*') {
d = a * b;
} else if (c == '/') {
d = a / b;
} else
break;
printf("%d\n", d);
}... | [["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 122 |
#include <stdio.h>
int main() {
int a, b;
char op;
while (1) {
scanf("%d %c %d", &a, &op, &b);
if (op == "+") {
printf("%d\n", a + b);
} else if (op == "-") {
printf("%d\n", a - b);
} else if (op == "*") {
printf("%d\n", a * b);
} else if (op == "/") {
printf("%d\n", a... | #include <stdio.h>
int main() {
int a, b;
char op;
while (1) {
scanf("%d %c %d\n", &a, &op, &b);
if (op == '+') {
printf("%d\n", a + b);
} else if (op == '-') {
printf("%d\n", a - b);
} else if (op == '*') {
printf("%d\n", a * b);
} else if (op == '/') {
printf("%d\n",... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 137 |
int main() {
while (1) {
int a, b, x;
char op;
scanf("%d %c %d", &a, &op, &b);
if (op == "+") {
x = a + b;
printf("%d\n", x);
} else if (op == "-") {
x = a - b;
printf("%d\n", x);
} else if (op == "*") {
x = a * b;
printf("%d\n", x);
} else if (op == "/"... | int main() {
while (1) {
int a, b, x;
char op;
scanf("%d %c %d", &a, &op, &b);
if (op == '+') {
x = a + b;
printf("%d\n", x);
} else if (op == '-') {
x = a - b;
printf("%d\n", x);
} else if (op == '*') {
x = a * b;
printf("%d\n", x);
} else if (op == '/'... | [["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 150 |
#include <stdio.h>
int main() {
int a, b, x;
char op;
for (x = 0; x > 0; x++) {
scanf("%d %c %d", &a, &op, &b);
if (op == "+") {
printf("%d\n", a + b);
} else if (op == "-") {
printf("%d\n", a - b);
} else if (op == "*") {
printf("%d\n", a * b);
} else if (op == "/") {
... | #include <stdio.h>
int main() {
int a, b, x;
char op;
for (x = 1; x > 0; x++) {
scanf("%d %c %d", &a, &op, &b);
if (op == '+') {
printf("%d\n", a + b);
} else if (op == '-') {
printf("%d\n", a - b);
} else if (op == '*') {
printf("%d\n", a * b);
} else if (op == '/') {
... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 156 |
while True:
x,y = (int(x) for x in input().split())
if x == 0 and y == 0:
break
if x > y:
print (str(x) + " " + str(y))
else:
print (str(y) + " " + str(x))
| while True:
x,y = (int(x) for x in input().split())
if x == 0 and y == 0:
break
if x < y:
print (str(x) + " " + str(y))
else:
print (str(y) + " " + str(x))
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18]] | 5 | 72 |
i=1
while True:
x,y = map(int, input().split())
if x == 0 and y == 0:
break
if x > y:
print(y, x)
else:
print(x, y)
| while True:
x,y = map(int, input().split())
if x == 0 and y == 0:break
if x > y:
print(y, x)
else:
print(x, y)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 51 |
for i in range(10000):
a, b = map(int, input().split())
if a == 0 and b == 0:
break
else:
if a > b:
print(a, b)
else:
print(b, a)
#print(min(a,b), max(a,b))
| for i in range(10000):
a, b = map(int, input().split())
if a == 0 and b == 0:
break
else:
if a < b:
print(a, b)
else:
print(b, a)
#print(min(a,b), max(a,b))
| [["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18]] | 5 | 56 |
while True:
c = input().split()
x, y = int(c[0]), int(c[1])
if x == y == 0:
break
if y < x:
x, y = y, x
print("%s %s" % (y, x))
| while True:
c = input().split()
x, y = int(c[0]), int(c[1])
if x == y == 0:
break
if y < x:
x, y = y, x
print("%d %d" % (x, y))
| [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 21], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 21], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22]] | 5 | 63 |
datalist = []
Flag = True
for i in range(3000):
if Flag:
x, y = map(int, input().split())
if x == 0:
Flag = False
else:
datalist.append((x, y))
#print(datalist)
for (i,j) in datalist:
if i < j :
print("{} {}".format(i, j))
else:
print("{} {}".f... | datalist = []
Flag = True
for i in range(3000):
if Flag:
x, y = map(int, input().split())
if x == 0 and y == 0:
Flag = False
else:
datalist.append((x, y))
#print(datalist)
for (i,j) in datalist:
if i < j :
print("{} {}".format(i, j))
else:
prin... | [["+", 0, 57, 64, 196, 0, 57, 15, 679, 17, 355], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 97 |
while True:
a,b=map(int,input().sprit())
if (a==0 and b==0):
break
if a>b:
swap=a
a=b
b=swap
print('%d %d'%(a,b))
| while True:
a,b=map(int,input().split())
if (a==0 and b==0):
break
if a>b:
swap=a
a=b
b=swap
print('%d %d'%(a,b))
| [["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]] | 5 | 57 |
while True:
a,b = list(map(int,input().split()))
if (not a) & (not b):
break
print(('{} {}'.format(a,b))) | while True:
a,b = sorted(map(int,input().split()))
if (not a) & (not b):
break
print(('{} {}'.format(a,b))) | [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 49 |
while True:
x,y = input().split()
x,y = list(map(int,(x,y)))
if x == 0 and y == 0:
break
if x > y:
x,y = list(map(str,(x,y)))
print(x + " " + y)
else:
x,y = list(map(str,(x,y)))
print(x + " " + y) |
while True:
x,y = input().split()
x,y = list(map(int,(x,y)))
if x == 0 and y == 0:
break
if x > y:
x,y = list(map(str,(x,y)))
print(y + " " + x)
else:
x,y = list(map(str,(x,y)))
print(x + " " + y) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 102 |
c = 0
while True:
a = input().split(' ')
x = int(a[0])
y = int(a[1])
if (x and y) == 0:
break;
elif x < y:
print(x,y)
elif x > y:
print(y,x)
elif x == y:
print(x,y)
c += 1 | c = 0
while True:
a = input().split(' ')
x = int(a[0])
y = int(a[1])
if (x or y) == 0:
break;
elif x < y:
print(x,y)
elif x > y:
print(y,x)
elif x == y:
print(x,y)
c += 1 | [["-", 0, 57, 15, 666, 0, 23, 0, 679, 17, 355], ["+", 0, 57, 15, 666, 0, 23, 0, 679, 17, 354]] | 5 | 83 |
while True:
(x,y) = list(map(int,input().split()))
if x*y == 0:
break
else:
if x > y:
x,y = y,x
print('%d %d' %(x,y)) | while True:
(x,y) = list(map(int,input().split()))
if x == 0 and y == 0:
break
else:
if x > y:
x,y = y,x
print('%d %d' %(x,y)) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355]] | 5 | 58 |
while True :
x,y = list(map(int,raw_input.split()))
if x==0 and y==0 :
break
else :
if x<y :
print('%d %d' %(x,y))
else :
print('%d %d' %(y,x)) | while True :
x,y = list(map(int,input().split()))
if x==0 and y==0 :
break
else :
if x<y :
print('%d %d' %(x,y))
else :
print('%d %d' %(y,x)) | [["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 63 |
while True:
a, b = list(map(int,input().split()))
if a==0:
break
if a>b:
print(str(b)+" "+str(a))
else:
print(str(a)+" "+str(b)) | while True:
a, b = list(map(int,input().split()))
if a == 0 and b == 0:
break
if a > b:
print(str(b) +" "+ str(a))
else:
print(str(a) +" "+ str(b)) | [["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 67 |
while True:
x,y = map(int,input().split())
if x == y == 0:
break
if x > y:
print(y,x)
print(x,y) | while True:
x,y = map(int,input().split())
if x == y == 0:
break
if x > y:
print(y,x)
continue
print(x,y) | [["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117]] | 5 | 44 |
import sys
for in_str in sys.stdin:
# comp_list = list(map(int, in_str.split(" ")))
a, b = map(int, in_str.split())
#a = comp_list[0]
#b = comp_list[1]
if a == 0 & b == 0 : break
elif a < b :
print(a, b)
else :
print(b, a) | import sys
for in_str in sys.stdin:
# comp_list = list(map(int, in_str.split(" ")))
a, b = map(int, in_str.split())
#a = comp_list[0]
#b = comp_list[1]
if (a == 0) & (b == 0) : break
elif a < b :
print(a, b)
else :
print(b, a) | [["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 657, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 657, 12, 23, 0, 25]] | 5 | 55 |
import sys
for in_str in sys.stdin:
comp_list = list(map(int, in_str.split(" ")))
# a, b = map(int, in_str.split())
a = comp_list[0]
b = comp_list[1]
if a == 0 & b == 0 : break
elif a < b :
print(a, b)
else :
print(b, a) | import sys
for in_str in sys.stdin:
comp_list = list(map(int, in_str.split(" ")))
# a, b = map(int, in_str.split())
a = comp_list[0]
b = comp_list[1]
if a == 0 and b == 0 : break
elif a < b :
print(a, b)
else :
print(b, a) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355]] | 5 | 69 |
import sys
for i,ws in enumerate(sys.stdin,1):
list = list(map(int, ws[:-1].split()))
if list[0] == 0 and list[1] == 0:
break
print((' '.join(map(str,list.sort())))) | import sys
for i,ws in enumerate(sys.stdin,1):
list = sorted(map(int, ws[:-1].split()))
if list[0] == 0 and list[1] == 0:
break
print((' '.join(map(str,list)))) | [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 74 |
a,b = sorted(map(int, input().split(' ')))
if a or b:
print(a, b) | while True:
a,b = sorted(map(int, input().split(' ')))
if a or b:
print(a, b)
else:
break | [["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 102], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 0, 57, 75, 76, 8, 196, 0, 93, 0, 94]] | 5 | 33 |
x = 1
y = 1
while x != 0 or y != 0:
n = list(map(int,input().split()))
x = n[0]
y = n[1]
if x == 0 and y == 0:
break
elif x <= y:
print(x,y)
elif x > y:
print(y,x1) | x = 1
y = 1
while x != 0 or y != 0:
n = list(map(int,input().split()))
x = n[0]
y = n[1]
if x == 0 and y == 0:
break
elif x <= y:
print(x,y)
elif x > y:
print(y,x) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 76 |
while True:
x,y = list(map( int , input().split() ))
if x == 0 and y == 0:
break
elif x < y:
print("%d %d" %(x,y))
elif y < x :
print("%d %d" %(y,x)) | while True:
x,y = list(map( int , input().split() ))
if x == 0 and y == 0:
break
elif x <= y:
print("%d %d" %(x,y))
elif y < x :
print("%d %d" %(y,x)) | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 66 |
while True:
x, y = list(map(int, raw_input.split()))
if x == y == 0:
break
if x < y:
print('%d %d' %(x, y))
elif x > y :
print('%d %d' %(y, x))
elif x == y:
print('%d %d' %(x, y))
|
while True:
x, y = list(map(int, input().split()))
if x == y == 0:
break
if x < y:
print('%d %d' %(x, y))
elif x > y :
print('%d %d' %(y, x))
elif x == y:
print('%d %d' %(x, y))
| [["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 79 |
while True:
a, b = list(map(int, input().split()))
if a == 0 and b == 0:
break
if a < b:
print('%s %s' % (b, a))
else:
print('%s %s' % (a, b)) | while True:
a, b = list(map(int, input().split()))
if a == 0 and b == 0:
break
if a > b:
print('%s %s' % (b, a))
else:
print('%s %s' % (a, b)) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 63 |
while True:
x, y = list(map(int, input().split()))
if x == 0 and y == 0:
break
if x < y:
print("%d %d" %(x, y))
if x > y:
print("%d %d" %(y, x)) | while True:
x, y = list(map(int, input().split()))
if x == 0 and y == 0:
break
elif x <= y:
print("%d %d" %(x, y))
elif x > y:
print("%d %d" %(y, x)) | [["-", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 75, 665, 0, 683], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 66 |
while True:
x, y = list(map(int, raw_input.split()))
if x == 0 and y == 0:
break
elif x < y:
print("%d %d" %(x, y))
else:
print("%d %d" %(y, x)) | while True:
x, y = list(map(int, input().split()))
if x == 0 and y == 0:
break
elif x < y:
print("%d %d" %(x, y))
else:
print("%d %d" %(y, x)) | [["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 61 |
data = [int(x) for x in input().split()]
while(data[0] != 0 and data[1] != 0):
data.sort()
print(data[0], data[1])
data = [int(x) for x in input().split()] | data = [int(x) for x in input().split()]
while(not(data[0] == 0 and data[1] == 0)):
data.sort()
print(data[0], data[1])
data = [int(x) for x in input().split()] | [["+", 0, 656, 0, 52, 15, 23, 0, 681, 0, 372], ["+", 0, 52, 15, 23, 0, 681, 28, 23, 0, 24], ["-", 0, 52, 15, 23, 0, 679, 31, 666, 667, 79], ["+", 0, 681, 28, 23, 0, 679, 31, 666, 667, 60], ["-", 0, 52, 15, 23, 0, 679, 12, 666, 667, 79], ["+", 0, 681, 28, 23, 0, 679, 12, 666, 667, 60], ["+", 0, 52, 15, 23, 0, 681, 28, 2... | 5 | 70 |
n = -100, -100
while n[0] != 0 and n[1] != 0:
n = list(map( int, input().split()))
if n[0] != 0 and n[1] != 0:
print(min(n[0],n[1]),max(n[0],n[1])) | n = -100, -100
while n[0] != 0 or n[1] != 0:
n = list(map( int, input().split()))
if n[0] != 0 or n[1] != 0:
print(min(n[0],n[1]),max(n[0],n[1])) | [["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 52, 15, 679, 17, 354], ["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 82 |
while True:
x,y = list(map(input().split()))
if x == 0 and y == 0:
break
if y >= x:
print('%s %s' % (x, y))
else:
print('%s %s' % (y, x)) | while True:
x,y = list(map(int, input().split()))
if x == 0 and y == 0:
break
if y >= x:
print('%s %s' % (x, y))
else:
print('%s %s' % (y, x)) | [["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21]] | 5 | 61 |
x = []
y = []
i = 0
while True:
a, b = list(map(int, input().split()))
if b < a:
stock = a
a = b
b = stock
x.append(a)
y.append(b)
if x[i] == 0 and y[i] == 0:
break
i += 1
for j in range(i):
print((str(x[j]), str(y[j]))) | x = []
y = []
i = 0
while True:
a, b = map(int, input().split())
if b < a:
stock = a
a = b
b = stock
x.append(a)
y.append(b)
if x[i] == 0 and y[i] == 0:
break
i += 1
for j in range(i):
print(str(x[j]), str(y[j])) | [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 3, 4, 0, 660, 0, 652, 3, 4, 0, 25]] | 5 | 106 |
while True:
x,y = sorted(map(input().split()))
if x==y==0:
break
print(x,y) | while True:
x,y = sorted(map(int,input().split()))
if x==y==0:
break
print(x,y) | [["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21]] | 5 | 34 |
import sys
while True:
x,y = map(int,sys.stdin.readline().split())
if x==0 & y==0:
break
if x<=y:
print(x,y)
else:
print(y,x) | import sys
while True:
x,y = map(int,sys.stdin.readline().split())
if (x==0) & (y==0):
break
if x<=y:
print(x,y)
else:
print(y,x) | [["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 657, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 657, 12, 23, 0, 25]] | 5 | 54 |
while True:
x,y=map(int,input().split())
if x==0 & y==0:
break
else:
if x>y:
print(y,x)
else:
print(x,y) | while True:
x,y=map(int,input().split())
if (x==0) & (y==0):
break
else:
if x>y:
print(y,x)
else:
print(x,y) | [["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 657, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 657, 12, 23, 0, 25]] | 5 | 50 |
while True:
line=list(map(int,input().split()))
if line==[0,0]:
break
else:
op=sorted(line)
print(line[0],line[1]) | while True:
line=list(map(int,input().split()))
if line==[0,0]:
break
else:
op=sorted(line)
print(op[0],op[1]) | [["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22]] | 5 | 50 |
input_array=[]
while True:
a, b = [int(x) for x in input().split(" ")]
if a == 0 and b == 0:
break
elif a > b:
tmp = a
a = b
b = a
input_num = str(a) + " " + str(b)
input_array.append(input_num)
for x in range(0,len(input_array)):
print((input_array[x])) | input_array=[]
while True:
a, b = [int(x) for x in input().split(" ")]
if a == 0 and b == 0:
break
elif a > b:
tmp = a
a = b
b = tmp
input_num = str(a) + " " + str(b)
input_array.append(input_num)
for x in range(0,len(input_array)):
print((input_array[x])) | [["-", 75, 665, 64, 196, 0, 1, 0, 662, 12, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 662, 12, 22]] | 5 | 97 |
# coding:utf-8
# ??\??????????????´??°????°???????????????????
i = 1
x = 1
while x != 0 and y != 0:
xy = input().split()
x = int(xy[0])
y = int(xy[1])
if x == 0 and y ==0:
break
if x < y :
print(x,y)
else:
print(y,x) | # coding:utf-8
# ??\??????????????´??°????°???????????????????
i = 1
x = 1
y = 1
while x != 0 or y != 0:
xy = input().split()
x = int(xy[0])
y = int(xy[1])
if x == 0 and y ==0:
break
if x < y :
print(x,y)
else:
print(y,x) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 52, 15, 679, 17, 354]] | 5 | 73 |
while True:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
elif a > b:
print(b, a)
elif a < b:
print(a, b) | while True:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
elif a > b or a == b:
print(b, a)
elif a < b:
print(a, b) | [["+", 8, 196, 0, 57, 75, 665, 15, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 667, 60]] | 5 | 51 |
while True:
xy_list = list(map(int, input().split()))
if xy_list[0] == xy_list[1] == 0:
break
print(sorted(xy_list)) | while True:
xy_list = list(map(int, input().split()))
if xy_list[0] == xy_list[1] == 0:
break
print(*sorted(xy_list)) | [["+", 0, 652, 3, 4, 0, 652, 63, 661, 0, 48]] | 5 | 41 |
while True:
(x, y) = [int(i) for i in sys.stdin.readline().split()]
if x == 0 == y:
break
if x > y:
z = x
x = y
y = z
print(x, y) | import sys
while True:
(x, y) = [int(i) for i in sys.stdin.readline().split()]
if x == 0 == y:
break
if x > y:
z = x
x = y
y = z
print(x, y) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 57 |
while True:
a = input()
b = a.split(' ')
b.sort()
if int(b[0]) == 0 and int(b[1]) == 0:
break
print('%s %s' % (b[0],b[1])) | while True:
a = input()
b = a.split(' ')
b.sort(key=int)
if int(b[0]) == 0 and int(b[1]) == 0:
break
print('%s %s' % (b[0],b[1])) | [["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 51, 22]] | 5 | 63 |
# coding: utf-8
x,y=map(int,input().split())
while x!=0 and y!=0:
if x>y:
x,y=y,x
print(str(x)+" "+str(y))
x,y=map(int,input().split()) | # coding: utf-8
x,y=map(int,input().split())
while not(x==0 and y==0):
if x>y:
x,y=y,x
print(str(x)+" "+str(y))
x,y=map(int,input().split()) | [["+", 36, 36, 0, 656, 0, 52, 15, 681, 0, 372], ["+", 0, 656, 0, 52, 15, 681, 28, 23, 0, 24], ["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 79], ["+", 15, 681, 28, 23, 0, 679, 31, 666, 667, 60], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 79], ["+", 15, 681, 28, 23, 0, 679, 12, 666, 667, 60], ["+", 0, 656, 0, 52, 15, 681... | 5 | 70 |
'''
ITP-1_3-C
2 ????????°?????????
???????????´??° x, y ?????????????????????????????????????°?????????????????????????????????°?????????????????????????????????
?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????
???Input
??\?????????... | '''
ITP-1_3-C
2 ????????°?????????
???????????´??° x, y ?????????????????????????????????????°?????????????????????????????????°?????????????????????????????????
?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????
???Input
??\?????????... | [["-", 0, 7, 8, 196, 0, 57, 75, 665, 0, 683], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95]] | 5 | 88 |
data = input().split()
a = int(data[0])
b = int(data[1])
while(a != 0 and b != 0):
if a > b:
temp = a
a = b
b = temp
print((str(b) + " " + str(a)))
data = input().split()
a = int(data[0])
b = int(data[1])
| data = input().split()
a = int(data[0])
b = int(data[1])
while(a != 0 or b != 0):
if a > b:
temp = a
a = b
b = temp
print(str(a) + " " + str(b))
data = input().split()
a = int(data[0])
b = int(data[1])
| [["-", 0, 656, 0, 52, 15, 23, 0, 679, 17, 355], ["+", 0, 656, 0, 52, 15, 23, 0, 679, 17, 354], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["-", 0, 23, 0, 657, 12, 652, 3, 4, 0, 22], ["-", 0, 23, 0, 657, 12, 652, 3, 4, 0, 25], ["+... | 5 | 97 |
x,y=input().split()
while (x!='0'or y!='0'):
if(x>y):print("{} {}".format(y,x))
else:print("{} {}".format(x,y))
x,y=input().split() | x,y=input().split()
while (x!='0'or y!='0'):
if(int(x)>int(y)):print("{} {}".format(y,x))
else:print("{} {}".format(x,y))
x,y=input().split() | [["+", 0, 57, 15, 23, 0, 666, 0, 652, 63, 22], ["+", 15, 23, 0, 666, 0, 652, 3, 4, 0, 24], ["+", 15, 23, 0, 666, 0, 652, 3, 4, 0, 25]] | 5 | 72 |
while 1:
x,y=map(int,input().split())
if x==0:break
print(*[y,x] if x>y else [x,y]) | while 1:
x,y=map(int,input().split())
if x==0 and y==0:break
print(*[y,x] if x>y else [x,y]) | [["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 44 |
import sys
while True :
ab = list(map(int,sys.stdin.readline().split()))
a = ab[0]
b = ab[1]
if a == 0 and b == 0 :
break
else :
sorted(ab)
print(ab[0],ab[1]) | import sys
while True :
ab = list(map(int,sys.stdin.readline().split()))
a = ab[0]
b = ab[1]
if a == 0 and b == 0 :
break
else :
ab = sorted(ab)
print(ab[0],ab[1]) | [["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32]] | 5 | 66 |
while True:
x, y = list(map(int, input().split()))
if x and y == 0:
break
if x <= y :
print('%s %s' % (x, y))
else:
print('%s %s' % (y, x)) | while True:
x, y = list(map(int, input().split()))
if x == 0 and y == 0:
break
if x <= y :
print('%s %s' % (x, y))
else:
print('%s %s' % (y, x)) | [["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 0, 612]] | 5 | 61 |
import sys
a = []
for line in sys.stdin:
x,y = list(map(int,line.split(" ")))
if x == 0 and y == 0:
break
item = [x,y]
item.sort
a.append(item)
for x,y in a:
print("%s %s" %(x,y)) | import sys
a = []
for line in sys.stdin:
x,y = list(map(int,line.split(" ")))
if x == 0 and y == 0:
break
item = sorted([x,y])
a.append(item)
for x,y in a:
print("%s %s" %(x,y)) | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 7, 8, 196, 0, 1, 0, 319, 500, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 319, 0, 131], ["-", 0, 7, 8, 196, 0, 1, 0, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 78 |
import fileinput
for line in fileinput.input():
tokens = list(map(int, line.strip().split()))
tokens.sort()
a, b = tokens[0], tokens[1]
if a == 0 and b == b:
break
else:
print(a, b) | import fileinput
for line in fileinput.input():
tokens = list(map(int, line.strip().split()))
tokens.sort()
a, b = tokens[0], tokens[1]
if a == 0 and b == 0:
break
else:
print(a, b) | [["-", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 66 |
while True:
x,y = map(int,input().split())
if x == 0 and y == 0:
break
if x >= y:
print(y,x)
else:
print(y,x) | while True:
x,y = map(int,input().split())
if x == 0 and y == 0:
break
if x >= y:
print(y,x)
else:
print(x,y) | [["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 48 |
if __name__ == "__main__":
while True:
x,y = map(int,input().split())
if x is not 0 and y is not 0 :
if x > y:
tmp = x
x = y
y = tmp
print("%d %d"%(x,y))
else:
break | if __name__ == "__main__":
while True:
x,y = map(int,input().split())
if x is not 0 or y is not 0 :
if x > y:
tmp = x
x = y
y = tmp
print("%d %d"%(x,y))
else:
break | [["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 66 |
a=[]
while True:
m,n=input().split()
if m==n=="0":
break
else:
a.append(sorted([int(m),int(n)]))
print(a)
for i in range(len(a)):
print("{0} {1}".format(a[i][0],a[i][1])) | a=[]
while True:
m,n=input().split()
if m==n=="0":
break
else:
a.append(sorted([int(m),int(n)]))
for i in range(len(a)):
print("{0} {1}".format(a[i][0],a[i][1])) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 89 |
while True :
x, y = [temp for temp in input().split()]
if x == y == '0' :
break
if x < y : print(x, y)
else : print(y, x) | while True :
x, y = [int(temp) for temp in input().split()]
if x == y == 0 :
break
if x < y : print(x, y)
else : print(y, x) | [["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 49 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.