1 solutions
-
0
C :
#include <stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) { printf("%d\n",(a+b)*12); } return 0; }C++ :
#include<stdio.h> int main() { int n,m; while(scanf("%d%d",&m,&n) != EOF) { int age; age =12 * (n + m); printf("%d\n",age); } return 0; }Java :
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int m=sc.nextInt(),n=sc.nextInt(); System.out.println(12*(m+n)); } sc.close(); } }
- 1
Information
- ID
- 19304
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By