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 |
|---|---|---|---|---|
import java.util.Scanner;
/**
* Created by khrom on 2017/06/11.
*/
public class Main {
public static void main(String[] args) {
Scanner square = new Scanner(System.in).useDelimiter("\\s");
int a = square.nextInt();
int b = square.nextInt();
if (a == b) {
System.out.println("a==b");
} else... | import java.util.Scanner;
/**
* Created by khrom on 2017/06/11.
*/
public class Main {
public static void main(String[] args) {
Scanner square = new Scanner(System.in).useDelimiter("\\s");
int a = square.nextInt();
int b = square.nextInt();
if (a == b) {
System.out.println("a == b");
} el... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 121 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt(), b = s.nextInt();
String c;
if (a > b) {
c = ">";
} else if (a < b) {
c = "<";
} else {
c = "==";
}
System.out.println('a' +... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt(), b = s.nextInt();
String c;
if (a > b) {
c = ">";
} else if (a < b) {
c = "<";
} else {
c = "==";
}
System.out.println("a " ... | [["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 252], ["+", 3, 4, 0, 16, 31, 16, 31, 5, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 252], ["+", 0, 492, 3, 4, 0, 16, 12, 5, 0, 62], ["+", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]] | 3 | 106 |
import java.io.*;
class Main {
static InputStreamReader isr;
static BufferedReader br;
static String output;
static String[] data = new String[2];
static void initialize() {
isr = new InputStreamReader(System.in);
br = new BufferedReader(isr);
output = null;
for (String d : data) {
d =... | import java.io.*;
class Main {
static InputStreamReader isr;
static BufferedReader br;
static String output;
static String[] data = new String[2];
static void initialize() {
isr = new InputStreamReader(System.in);
br = new BufferedReader(isr);
output = null;
for (String d : data) {
d =... | [["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 491]] | 3 | 222 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
Stri... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
Stri... | [["+", 0, 246, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 15, 15, 0, 24], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 15, 0, 25]] | 3 | 177 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (-1000 <= a && b <= 1000) {
if (a < b) {
System.out.println("a<b");
} else if (a > b) {
System.out.pr... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (-1000 <= a && b <= 1000) {
if (a < b) {
System.out.println("a < b");
} else if (a > b) {
System.out.... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 131 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String str = br.readLine();
StringTokenizer st = new StringTokenizer(str, " ");
int a = Integer.parseInt(st.ne... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String str = br.readLine();
StringTokenizer st = new StringTokenizer(str, " ");
int a = Integer.parseInt(st.ne... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 163 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
if (a >= -1000 && a <= 1000 && b >= -1000 && b <= 1000) {
if (a == b) {
System.out.println("a==b");
}
if (a >... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
if (a >= -1000 && a <= 1000 && b >= -1000 && b <= 1000) {
if (a == b) {
System.out.println("a == b");
}
if (a... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 132 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a > b) {
System.out.println("a"
+ ">"
+ "b");
} else if (a < b) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a > b) {
System.out.println("a"
+ " > "
+ "b");
} else if (a < b) {
... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 130 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String s = new String();
if (a < b) {
s = "<";
} else if (a > b) {
s = ">";
} else {
s = "==";
}
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String s = new String();
if (a < b) {
s = "<";
} else if (a > b) {
s = ">";
} else {
s = "==";
}
... | [["-", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]] | 3 | 116 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine()... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine()... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 171 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str1 = br.readLine();
String[] str2 = str1.split(" ");
int a = Integer.parseInt(str2[0]);
int b = Integer.parseInt(str2[1]);
... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str1 = br.readLine();
String[] str2 = str1.split(" ");
int a = Integer.parseInt(str2[0]);
int b = Integer.parseInt(str2[1]);
... | [["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 136 |
import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a < b)
System.out.println("a < b");
if (a > b)
System.out.println("a < b... | import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a < b)
System.out.println("a < b");
if (a > b)
System.out.println("a > b... | [["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 113 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] strAry = str.split(" ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] strAry = str.split(" ... | [["-", 75, 57, 64, 1, 0, 11, 12, 5, 0, 491], ["+", 75, 57, 64, 1, 0, 11, 12, 5, 0, 491]] | 3 | 148 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer a = new Integer(sc.nextInt());
Integer b = new Integer(sc.nextInt());
int result = a.compareTo(b);
System.out.println(result == 0 ? "a == b" : result > 0 ? "a < b" ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer a = new Integer(sc.nextInt());
Integer b = new Integer(sc.nextInt());
int result = a.compareTo(b);
System.out.println(result == 0 ? "a == b" : result < 0 ? "a < b" ... | [["-", 3, 4, 0, 510, 75, 510, 15, 16, 17, 47], ["+", 3, 4, 0, 510, 75, 510, 15, 16, 17, 18]] | 3 | 98 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 158 |
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String z = "";
if (x > y) {
z = ">";
} else if (x < y) {
z = "<";... | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String z = "";
if (x > y) {
z = ">";
} else if (x < y) {
z = "<";... | [["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 491]] | 3 | 129 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.lang.Exception {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
Scanner scan = new Scanner(Syst... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.lang.Exception {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
Scanner scan = new Scanner(Syst... | [["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47]] | 3 | 157 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println("a" + (a < b ? "<" : (a == b ? "==" : ">")) + "b");
}
}
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println("a " + (a < b ? "<" : (a == b ? "==" : ">")) + " b");
}
}
| [["-", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]] | 3 | 92 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if (x > y) {
System.out.println("a>b");
} else if (x < y) {
System.out.println("a<b");
} else
System.out.pr... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if (x > y) {
System.out.println("a > b");
} else if (x < y) {
System.out.println("a < b");
} else
System.ou... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 104 |
a=input()
b,c =a.split()
print(int(b)*int(c))
print(int(b)*2+int(c)*2) | a=input()
b,c =a.split()
print(int(b)*int(c),end=" ")
print(int(b)*2+int(c)*2) | [["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 42 |
a.b = list(map(int,input().split()))
area = a * b
length = 2 * (a + b)
print(area,end=" ")
print(length) | a,b = list(map(int,input().split()))
area = a*b
length = 2 * (a+b)
print(area,end=" ")
print(length) | [["-", 0, 656, 0, 1, 0, 662, 31, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21]] | 5 | 47 |
s=split(input())
a=int(s[0])
b=int(s[1])
x=a*b
y=2*(a+b)
print(x,y) | s=input().split()
a=int(s[0])
b=int(s[1])
x=a*b
y=2*(a+b)
print(x,y) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]] | 5 | 46 |
#coding:UTF-8
s = input().split()
cir = 2*(int(s[0])+int(s[1]))
area = int(s[0])*int(s[1])
print((area,cir)) | #coding:UTF-8
s = input().split()
cir = 2*(int(s[0])+int(s[1]))
area = int(s[0])*int(s[1])
print (area,cir) | [["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25]] | 5 | 56 |
x= input()
a = int(x[0])
b = int(x[2])
print(a*b,a*2+b*2) | x=input().split()
a = int(x[0])
b = int(x[1])
print( a*b , a*2+b*2 )
| [["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612]] | 5 | 37 |
[a, b] = map(int, input().split())
print(a*b + " " + (a+b)*2) | [a, b] = map(int, input().split())
print(a*b, (a+b)*2) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 36 |
x=str(input())
n=x.split(" ", 2)
a=int(n[0])
b=int(n[1])
ab=a*b
a_b=(a+b)*2
print('ab', end=' ')
print('a_b') | x=str(input())
n=x.split(" ", 2)
a=int(n[0])
b=int(n[1])
ab=a*b
a_b=(a+b)*2
print(ab, end=' ')
print(a_b) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 70 |
i = input().split()
a = int(x[1])
b = int(x[-1])
print(a*b, (a+b)*2) | x = input().split()
a = int(x[0])
b = int(x[1])
print(a*b, (a+b)*2) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["-", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33]] | 5 | 42 |
a,b = [int(i) for i in input().split( )]
print(a+b,(a+b)*2) | a,b=[int(i) for i in input().split()]
print(a*b,(a+b)*2) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]] | 5 | 34 |
a,b=map(int,input(),split())
print(a*b,(a+b)*2) | a,b=map(int,input().split())
print(a*b,(a+b)*2) | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 30 |
a,b=map(int,input().split())
print((a+b)*2) | a,b=map(int,input().split())
print (a * b,(a + b) * 2) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 26 |
[a,b]=map(int,input(),split())
print(a*b,(a+b)*2) | [a,b] = map(int,input().split())
print(a*b,(a+b)*2) | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 32 |
item = [int(i) for i in input().split()]
print(item[0]*item[1]+" "+2*(item[0]+item[1])) | item = [int(i) for i in input().split()]
print(item[0]*item[1],2*(item[0]+item[1])) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 48 |
x = map(int,input().split())
print(str(x[0]*x[1])+" "+str(2*x[0]+2*x[1])) | x = list(map(int,input().split()))
print(str(x[0]*x[1])+" "+str(2*x[0]+2*x[1])) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 50 |
a, b = [int(s) for s in input().split()]
print(a * b)
print(2 * (a + b)) | a, b = [int(s) for s in input().split()]
print(a * b, 2 * (a + b)) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 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, 21]] | 5 | 36 |
l = input().split
a, b = list(map(int, l))
print(a * b, 2 * (a + b)) | l = input().split()
a, b = list(map(int, l))
print(a * b, 2 * (a + b)) | [["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 34 |
input_lines = input()
input_i = input_lines.split(" ")
print(int(input_i[0])*int(input_i[1]))
print((int(input_i[0])+int(input_i[1]))*2) | input_lines = input()
input_i = input_lines.split(" ")
print(int(input_i[0])*int(input_i[1]),end=" ")
print((int(input_i[0])+int(input_i[1]))*2) | [["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 55 |
import sys
a, b = list(map(int, sys.stdin.readline(),split()))
print(a*b, 2*a+2*b) | import sys
a, b = list(map(int, sys.stdin.readline().split()))
print(a*b, 2*a+2*b) | [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 39 |
numbers = list(map(int,input().split()))
print((numbers[0]*numbers[1])+" "+(numbers[0]+numbers[1])*2) |
numbers = list(map(int,input().split()))
print(str(numbers[0]*numbers[1])+" "+str((numbers[0]+numbers[1])*2)) | [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 49 |
def temp(val):
[a,b]=val.split()
a = int(a)
b = int(b)
print("{} {}".format(a*b, 2*a+2*b))
temp(input) | def temp(val):
[a,b]=val.split()
a = int(a)
b = int(b)
print("{} {}".format(a*b, 2*a+2*b))
temp(input()) | [["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 54 |
input_line = input().split()
a = int(input_line[0])
b = int(input_line[1])
S = a*b
l = a*(a+b)
print(S, l) | input_line = input().split()
a = int(input_line[0])
b = int(input_line[1])
S = a*b
l = 2*(a+b)
print(S, l) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 612]] | 5 | 47 |
z = input()
x,y= z.split()
a = int(x)*int(y)
b = int(x)*2+ int(y)*2
print("{}{}".format(a,b)) | z = input()
x,y= z.split()
a = int(x)*int(y)
b = int(x)*2+ int(y)*2
print("{} {}".format(a,b)) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 53 |
s = input().split()
print(int(s[0])*int(s[1]),int(s[0])*2+int(s[1]*2)) | s = input().split()
print(int(s[0])*int(s[1]),int(s[0])*2+int(s[1])*2) | [["+", 0, 657, 12, 657, 31, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 47 |
a,b = map(int,input().sep())
men = a*b
hen = (a+b)*2
print(int(men),int(hen)) | a,b = map(int,input().split())
men = a*b
hen = (a+b)*2
print(int(men),int(hen)) | [["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]] | 5 | 42 |
x=input().split()
a=int(x[0])
b=int(x[1])
print(a*b+" "+(a*2+b*2)) | x=input().split()
a=int(x[0])
b=int(x[1])
print(a*b,(a*2+b*2)) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 47 |
x = input()
split_x = x.split(sep=" ")
a = int(split_x[0])
b = int(split_x[1])
Circumference = str(a*2 + b*2)
Area = str(a *b)
print(Circumference + " " + Area) |
x = input()
split_x = x.split(sep=" ")
a = int(split_x[0])
b = int(split_x[1])
Circumference = str(a*2 + b*2)
Area = str(a *b)
print(Area + " " + Circumference) | [["-", 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 | 65 |
my_value = input()
my_value_list = ([int(x) for x in my_value.split()])
print("{} {}".format(my_value_list[0]*my_value_list[1], my_value_list[0]+my_value_list[1])) | my_value = input()
my_value_list = ([int(x) for x in my_value.split()])
print("{} {}".format(my_value_list[0]*my_value_list[1], (my_value_list[0]+my_value_list[1])*2)) | [["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 52 |
a, b = map(int.input().split())
print(a * b, a * 2 + b * 2) | a, b = map(int, input().split())
print(a * b, a * 2 + b * 2) | [["-", 0, 652, 63, 319, 500, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]] | 5 | 30 |
a, b = map(int, input().split())
s = a*b
l = 2*(a+b)
print(str(a) + " " + str(b)) | a, b = map(int, input().split())
s = a*b
l = 2*(a+b)
print(str(s) + " " + str(l)) | [["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22]] | 5 | 46 |
a,b=list(map(int,input(),split()))
print(a*b,(a+b)*2) | a,b=list(map(int,input().split()))
print(a*b,(a+b)*2) | [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 33 |
def length(a, b):
return 2*a+2*b
def space (a, b):
return a * b
list = list(map(int, input().split(' ')))
print('{} {}'.format(length(list[0],list[1]), space(list[0], list[1]))) | def length(a, b):
return 2*a+2*b
def space (a, b):
return a * b
list = list(map(int, input().split(' ')))
print('{} {}'.format(space(list[0], list[1]), length(list[0],list[1]))) | [["-", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 83 |
a, b = eval(input().replace(' ', ','))
print("{} {}".format(a*b, 2(a+b))) | a, b = eval(input().replace(' ', ','))
print("{} {}".format(a*b, 2*(a+b))) | [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 48]] | 5 | 41 |
a,b = map(int,input().strip().split())
c = (a+b)*2
s = a*b
print("%d %d" % (c,s)) | a,b = map(int,input().strip().split())
c = (a+b)*2
s = a*b
print("%d %d" % (s,c)) | [["-", 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 | 46 |
a,b = map(int,input())
s = a*b
l = 2*a + 2*b
print(s,l)
| a,b = map(int,input().split())
s = a * b
l = 2*a + 2*b
print(s,l)
| [["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 32 |
x,y = map(int,input().split().strip())
s=x*y
p=2*(x+y)
print("%d %d"%(s,p)) | x,y = map(int,input().split())
s=x*y
p=2*(x+y)
print("%d %d"%(s,p)) | [["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 46 |
x,y=[int(i) for i in input(num).split()]
print(x*y,(x+y)*2) | x,y=[int(i) for i in input().split()]
print(x*y,(x+y)*2) | [["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 22]] | 5 | 35 |
deglist = raw_input.split(" ")
height = int(deglist[0])
width = int(deglist[1])
menseki = height * width
nagasa = 2 * (height + width)
print(menseki, nagasa) | deglist = input().split(" ")
height = int(deglist[0])
width = int(deglist[1])
menseki = height * width
nagasa = 2 * (height + width)
print(menseki, nagasa) | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 48 |
x=int(input().split())
a=x[0]
b=x[1]
print(str(a*b)+' '+str(2*(a+b))) | x=list(map(int,input().split()))
a=x[0]
b=x[1]
print(str(a*b)+' '+str(2*(a+b))) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 48 |
a,b=int(input().split())
print(str(a*b)+' '+str(2*(a+b))) | a,b=list(map(int,input().split()))
print(str(a*b)+' '+str(2*(a+b))) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 38 |
a=input().split('')
print(int(a[0])*int(a[1]), end=' ')
print(int(a[0])*2+int(a[1])*2) | a=input().split()
print(int(a[0])*int(a[1]), end=' ')
print(int(a[0])*2+int(a[1])*2) | [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]] | 5 | 57 |
x = input().split(" ")
a = x[0]
b = x[1]
print(a * b, 2*(a + b)) | x = input().split(" ")
a = int(x[0])
b = int(x[1])
print(a * b, 2*(a + b)) | [["+", 0, 656, 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]] | 5 | 38 |
import sys
a,b = map(int(sys.stdin.readline().split()))
print(a*b,2(a+b))
| import sys
a,b=map(int,sys.stdin.readline().split())
print(a*b,2*(a+b))
| [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]] | 5 | 36 |
l = list(map(int,input().split()))
S = l[0] * l[1]
N = l[0]*2 + l[1]*2
print((str(S) + str(N)))
| l = list(map(int,input().split()))
S = l[0] * l[1]
N = l[0]*2 + l[1]*2
print((str(S) +' '+ str(N)))
| [["+", 0, 23, 0, 657, 31, 657, 12, 557, 0, 654], ["+", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 23, 0, 657, 31, 657, 12, 557, 0, 655], ["+", 0, 652, 3, 4, 0, 23, 0, 657, 17, 72]] | 5 | 57 |
z = input()
z = z.split( )
a = int(z[0]) * int(z[1])
b = int(z[0]) * 2 + int(z[1]) * 2
print(str(a) + ',' + str(b))
| z = input()
z = z.split( )
a = int(z[0]) * int(z[1])
b = int(z[0]) * 2 + int(z[1]) * 2
print(str(a) + ' ' + str(b))
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 66 |
arg = input().split()
a = arg[0]
b = arg[1]
o = str(int(a)*int(b))
o2 = str(2*(int(a)*int(b)))
print(o + " " + o2)
| arg = input().split()
a = arg[0]
b = arg[1]
o = str(int(a)*int(b))
o2 = str(2*(int(a)+int(b)))
print(o + " " + o2)
| [["-", 3, 4, 0, 657, 12, 23, 0, 657, 17, 48], ["+", 3, 4, 0, 657, 12, 23, 0, 657, 17, 72]] | 5 | 63 |
a, b = map(int, raw_input().split())
print(a * b, 2 * (a + b))
| a, b = list(map(int, input().split()))
print(a * b, 2 * (a + b))
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 30 |
A, B = map(int, input().split())
print((A*B) + " " + (2*A+2*B))
| A, B = map(int, input().split())
print(str(A*B) + " " + str(2*A+2*B))
| [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]] | 5 | 38 |
nums = list(map(int, input().split(" ")))
area = nums[0] * nums[1]
perimeter = nums[0] * 2 + nums[1] * 2
print(area + " " + perimeter)
| nums = list(map(int, input().split(" ")))
area = nums[0] * nums[1]
perimeter = nums[0] * 2 + nums[1] * 2
print(str(area) + " " + str(perimeter))
| [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 56 |
a, b = [int(elem) for elem in input().split]
print(a * b, (a + b) * 2)
| a, b = [int(elem) for elem in input().split()]
print(a * b, (a + b) * 2)
| [["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 25]] | 5 | 32 |
a,b=int(input().split())
print(a*b, 2*(a+b))
| a,b=map(int,input().split())
print(a*b, 2*(a+b))
| [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]] | 5 | 28 |
a,b=[int(x) for x in input().split()]
print((a*b,(a+b)*2))
| a,b=[int(x) for x in input().split()]
print(a*b,(a+b)*2)
| [["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25]] | 5 | 36 |
a,b=list(map(int,input().split()))
c=a*b
d=(a+b)*2
print((c,d))
| a,b=map(int,input().split())
c=a*b
d=(a+b)*2
print(c,d)
| [["-", 0, 656, 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], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25]] | 5 | 41 |
ab = [int(n) for n in input().split()]
S = ab[0]*ab[1]
L = 2*ab[0] + 2*ab[1]
print(" ".join(str,map([S,L])))
| ab = [int(n) for n in input().split()]
S = ab[0]*ab[1]
L = 2*ab[0] + 2*ab[1]
print(" ".join(map(str,[S,L])))
| [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21]] | 5 | 64 |
s = input().split()
a = int(s[0])
b = int(s[1])
print(("{0},{1}".format(a*b, 2*(a+b))))
| s = input().split()
a = int(s[0])
b = int(s[1])
print(("{0} {1}".format(a*b, 2*(a+b))))
| [["-", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 50 |
a=eval(input())
line=a.split()
x=int(line[0])
y=int(line[1])
z1=x*y
z2=x*2+y*2
z3=str(z1)
z4=str(z2)
print((z3,z4))
| a=input()
line=a.split()
x=int(line[0])
y=int(line[1])
z1=x*y
z2=x*2+y*2
z3=str(z1)
z4=str(z2)
print(z3,z4)
| [["-", 0, 656, 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], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25]] | 5 | 67 |
#16D8101023J 久保田凌弥 kubotarouxxx python3
x,y=map(int, raw_input().split())
w=x*y
z=2*x+2*y
print(w,z)
| #16D8101023J 久保田凌弥 kubotarouxxx python3
x,y=map(int, input().split())
w=x*y
z=2*x+2*y
print(w,z)
| [["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]] | 5 | 37 |
x,y=list(map(int, input().split()))
print((x*y,(x+y)*2))
| x,y=map(int, input().split())
print(x*y,(x+y)*2)
| [["-", 0, 656, 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], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25]] | 5 | 35 |
x, y = map(int, input().split())
x*y, 2*(x+y)
| x, y = map(int, input().split())
print(x*y, 2*(x+y))
| [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 25]] | 5 | 27 |
a,b=map(int,input(),split())
x=a*b
y=2*(a+b)
print(x,y)
| a,b=map(int,input().split())
x=a*b
y=2*(a+b)
print(x,y)
| [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 36 |
a,b = map(int, input().split)
print(a*b,2*a+2*b)
| a,b = map(int, input().split())
print(a*b,2*a+2*b)
| [["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 28 |
inp=input()
abl=inp.split()
map(int,abl)
a,b=list(map(int,abl))
print(a*b,2(a+b))
| inp=input()
abl=inp.split()
map(int,abl)
a,b=list(map(int,abl))
print(a*b,2*(a+b))
| [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]] | 5 | 44 |
# encoding:utf-8
input = list(map(int, input().split()))
height, width = input
area = height * width
circumference = (height + width) * 2
print((":".join(map(str, (area, circumference))))) | # encoding:utf-8
input = list(map(int, input().split()))
height, width = input
area = height * width
circumference = (height + width) * 2
print((" ".join(map(str, (area, circumference))))) | [["-", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 59 |
nums = input(3).split(5)
a = int(nums[0])
b = int(nums[1])
print(a * b,(a + b) * 2) | nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a * b,(a + b) * 2) | [["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 612], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612]] | 5 | 43 |
nums = input().split()
a = int(nums[0])
b = int(num[1])
print(a * b,(a+b)*2) | nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a * b,(a+b)*2) | [["-", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22]] | 5 | 41 |
a,b = list(map(int,raw_input.split()))
print(a * b (a + b) * 2) | a, b = list(map(int,input().split()))
print(a * b, (a + b) * 2) | [["-", 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], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 30 |
( a, b) = input().sprit()
a = int(a)
b = int(b)
print(a*b, a*2+b*2) | ( a, b) = input().split()
a = int(a)
b = int(b)
print(a*b, a*2+b*2) | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]] | 5 | 39 |
input = input()
s = int(input.split()[0])
l = int(input.split()[1])
ans_1 = s*l
ans_2 = 2*(s+l)
print(src(ans_1)+" "+src(ans_2)) | input = input()
s = int(input.split()[0])
l = int(input.split()[1])
ans_1 = s*l
ans_2 = 2*(s+l)
print(str(ans_1)+" "+str(ans_2)) | [["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]] | 5 | 61 |
num = input()
num = numbers.split()
a = int(num[0])
b = int(num[1])
print(a * b, 2 * (a + b)) | num = input()
num = num.split()
a = int(num[0])
b = int(num[1])
print(a * b, 2 * (a + b)) | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22]] | 5 | 44 |
list = list(map(int, input().split()))
print(list[0]*list[1])
print(2*(list[0]+list[1])) | list = list(map(int, input().split()))
print(list[0]*list[1], end=' ')
print(2*(list[0]+list[1])) | [["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 45 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
var = input().split()
rect = int(var[0]) * int(var[1])
length = int(var[0]) * 2 + int(var[1]) * 2
print(rect + " " + length) | #!/usr/bin/env python
# -*- coding: utf-8 -*-
var = input().split()
rect = int(var[0]) * int(var[1])
length = int(var[0]) * 2 + int(var[1]) * 2
print(str(rect) + " " + str(length)) | [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 59 |
import sys
a,b = list(map(int(x) ,sys.stdin.readline().split()))
area = a*b
surround = 2*(a+b)
print(("%d %d" % (area, surround))) | import sys
a,b = list(map(int,sys.stdin.readline().split()))
area = a*b
surround = 2*(a+b)
print(("%d %d" % (area, surround))) | [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 56 |
a,b = list(map(int, input().split()))
c = 2 * (a+ b)
d = a * b
print(str(c) + " " + str(d)) | a,b = list(map(int, input().split()))
c = 2 * (a+ b)
d = a * b
print(str(d) + " " + str(c)) | [["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22]] | 5 | 49 |
a, b = list(map(int, input().split))
print(a * b, 2 * a + 2 * b) | a, b = list(map(int, input().split()))
print(a * b, 2 * a + 2 * b) | [["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 31 |
a,b = list(map( eval(input()) , input().split() ))
ans1 = a * b
ans2 = 2 * ( a + b )
print(ans1 , ans2) | a,b = list(map( int , input().split() ))
ans1 = a * b
ans2 = 2 * ( a + b )
print(ans1 , ans2) | [["-", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]] | 5 | 44 |
a, b = list(map(int, input(). split()))
return a * b, 2 * (a + b) | a, b = list(map(int, input(). split()))
print(a * b, 2 * (a + b)) | [["-", 36, 36, 36, 36, 0, 656, 0, 37, 0, 38], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 25]] | 5 | 31 |
a, b = list(map(int, input().split()))
print(a*b (a+b)*2) | a, b = list(map(int, input().split()))
print(a*b, (a+b)*2) | [["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 32 |
l = list(map( int , input().split()))
s = l[0] * l[1]
r = l[0] * 2 + l[1] * 2
print(s) | l = list(map( int , input().split()))
s = l[0] * l[1]
r = ( l[0] + l[1] ) * 2
print(s , r) | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 47 |
a,b = input().split(" ")
x = int(a)*2+int(b)*2
y = int(a)*int(b)
print("%d %d"%(x,y)) | a,b = input().split(" ")
x = int(a)*2+int(b)*2
y = int(a)*int(b)
print("%d %d"%(y,x)) | [["-", 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 | 52 |
n = input()
a = n.split(" ")
b = int(a[0])
c = int(a[1])
print(b*c (b+c)*2) | n = input()
a = n.split(" ")
b = int(a[0])
c = int(a[1])
print(b*c ,(b+c)*2) | [["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 46 |
l=list(map(int,input().split()))
a=l[0]
b=l[1]
c=a*b
d=(a+b)*2
print(c+" "+d) | l = list(map(int, input().split()))
a=l[0]
b=l[1]
c=a*b
d=(a+b)*2
print(str(c)+" "+str(d)) | [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 53 |
a, b = map(int, input().split())
def SquareArea(a, b):
return a * b
def SideLength(a, b):
return (a + b)*2
print('{} {}'.format(SideLength(a, b), SquareArea(a, b))) | a, b = map(int, input().split())
def SquareArea(a, b):
return a * b
def SideLength(a, b):
return (a + b)*2
print('{} {}'.format(SquareArea(a, b),SideLength(a, b))) | [["-", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.