1 solutions
-
0
C :
#include "stdio.h" int main() { int a; int b1,b2,b3,b; while(scanf("%d",&a) != EOF) { if (a==1) { b1=22; b2=73; printf("%d %d\n",b1,b2); ; } else if (a==2) { b1=22; b2=73; printf("%d %d\n",b1,b2); } else if (a==3) { b1=22; // b2=79; b2=71; printf("%d %d\n",b1,b2); } else if (a==0) { printf("0 1\n"); } } return 0; }C++ :
#include<iostream> using namespace std; int main() { int a; while(scanf("%d",&a)!=EOF) { if(a==1) cout<<"22"<<" "<<"73"<<endl; else if(a==2) cout<<"22"<<" "<<"73"<<endl; else if(a==3) cout<<"22"<<" "<<"61"<<endl; else cout<<"0"<<" "<<"1"<<endl; } return 0; }Java :
import java.util.*; public class Main { public static void main(String args[]) { Scanner cin = new Scanner(System.in); int a; int b; while (cin.hasNext()) { a = cin.nextInt(); if (a==1){ System.out.printf("22 73\n"); } else if (a==2){ System.out.printf("22 73\n");} else if (a==3){ System.out.printf("22 61\n");} else if (a==0){ System.out.printf("0 1\n");} } } }
- 1
Information
- ID
- 16683
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By