Search is not available for this dataset
name
stringlengths
2
88
description
stringlengths
31
8.62k
public_tests
dict
private_tests
dict
solution_type
stringclasses
2 values
programming_language
stringclasses
5 values
solution
stringlengths
1
983k
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int table[] = { 0, 6000, 4000, 3000, 2000 }; for ( int i = 0; i < 4; i++ ) { int t, n; cin >> t >> n; cout << table[t] * n << endl; } return ( 0 ); }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { /** * @param args */ Scanner sc = new Scanner(System.in); int kin=0; public void syori(){ int ku = sc.nextInt(); int su = sc.nextInt(); switch(ku){ case 1: kin = 6000 * su; break; case 2: kin = 4000 * su; break; case 3: kin = 3000 * su...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main() { int t, n; int sales; int price[] = { 6000, 4000, 3000, 2000 }; for (int i = 0; i < 4; i++) { cin >> t >> n; sales = price[t - 1] * n; cout << sales << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main(){ for(int i=0;i<4;i++){ int a,b; cin>>a>>b; if(a==1){ cout<<b*6000<<endl; } if(a==2){ cout<<b*4000<<endl; } if(a==3){ cout<<b*3000<<endl; } if(a==4){ cout<<b*2000<<endl; } } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); int go; public void solve(){ int shu=sc.nextInt(); int kaz=sc.nextInt(); switch(shu) { case 1: go=6000*kaz; break; case 2: go=4000*kaz; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python2
c = [6000, 4000, 3000, 2000] for i in range(0,4): a, b = map(int, raw_input().split()) print c[a-1] * b
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main(void){ int p[4] = {6000,4000,3000,2000}; int t,n; for(int i = 0 ; i < 4 ; i++){ cin >> t >> n; cout << p[t-1]*n <<endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> #include <cstdio> using namespace std; int main(){ int a[4] = {6000, 4000, 3000, 2000}, b, c; for (int i = 0; i < 4; i++){ scanf("%d%d", &b, &c); printf("%d\n", a[b-1]*c); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main() { int price[] = {6000, 4000, 3000, 2000}; for (int i=0; i<4; i++) { int t, n; cin>>t>>n; cout<<price[t-1]*n<<endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
//2706 石井夏鈴 問5 import java.util.Scanner; public class Main{ int n,t; int a=0; int ti[]={0,6000,4000,3000,2000}; public void solve(){ Scanner sc = new Scanner(System.in); for(int i=1;i<=4;i++){ t=sc.nextInt(); n=sc.nextInt(); a=ti[t]*n; System.out.println(a); } } public static void main(S...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main(){ int a, b; for(int i=0;i<4;i++){ cin>>a>>b; if(a == 1) cout<<6000 * b<<endl; if(a == 2) cout<<4000 * b<<endl; if(a == 3) cout<<3000 * b<<endl; if(a == 4) cout<<2000 * b<<endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
a1,b1=map(int,input().split()) a2,b2=map(int,input().split()) a3,b3=map(int,input().split()) a4,b4=map(int,input().split()) if a1==1: d1=6000 if a1==2: d1=4000 if a1==3: d1=3000 if a1==4: d1=2000 c1=d1*b1 if a2==1: d2=6000 if a2==2: d2=4000 if a2==3: d2=3000 if a2==4: d2=2000 ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan=new Scanner(System.in); int s[]=new int[4]; for(int i=0;i<4;i++) { int t=scan.nextInt(); int n=scan.nextInt(); if(t==1)s[i]+=6000*n; if(t==2)s[i]+=4000*n; if(t==3)s[i]+=3000*n; if(t==4)s[i]+=2000*n; } for(int i=0;i<4;i++) { Sys...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int price[4] = {6000, 4000, 3000, 2000}; int main() { int t, n; for (int i = 0; i < 4; i++) { cin >> t >> n; cout << price[t - 1] * n << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
S=6000 A=4000 B=3000 C=2000 for k in range(4): i,z=map(int,input().split()) if i==1: print(f"{S*z}") elif i==2: print(f"{A*z}") elif i==3: print(f"{B*z}") elif i==4: print(f"{C*z}")
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int ticket[4] = {6000, 4000, 3000, 2000}; int main(){ cin.tie(0); ios::sync_with_stdio(false); for(int i = 0; i < 4; ++i){ int t, n; cin >> t >> n; --t; cout << ticket[t] * n << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main() { int P[4] = { 6000, 4000, 3000, 2000 }; int t[4], n[4]; for (int i = 0; i < 4; i++) { cin >> t[i] >> n[i]; } for (int i = 0; i < 4; i++) { cout << P[t[i] - 1] * n[i] << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main{ int kin[]={6000,4000,3000,2000}; int syu; int mai; int gokei; public void solve(){ Scanner sc = new Scanner(System.in); for(int i=0;i<=3;i++){ syu = sc.nextInt(); mai = sc.nextInt(); syu = syu-1; gokei = mai*kin[syu]; System.out.println(gokei); } ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int v[] = {6000, 4000, 3000, 2000}; int main() { for (int i = 0; i < 4; i++) { int t, n; cin >> t >> n; cout << n * v[t - 1] << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
i=1 while i<5: t_i,n_i=map(int,input().split()) if t_i==1:a=n_i*6000 if t_i==2:a=n_i*4000 if t_i==3:a=n_i*3000 if t_i==4:a=n_i*2000 print(a) i=i+1
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <bits/stdc++.h> using namespace std; const int T[] = {-1, 6000, 4000, 3000, 2000}; int main() { for (int i = 0; i < 4; i++){ int t, n; cin >> t >> n; cout << T[t] * n << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int[][] a = new int[4][4]; for(int i = 0; i < 4; i++) { a[i][0] = stdIn.nextInt(); a[i][1] = stdIn.nextInt(); } for(int i = 0; i< 4; i++) { switch(a[i][0]) { case 1: Sys...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.*; class Main{ int t; int n; Main(){ Scanner sc=new Scanner(System.in); for(int i=1; i<5; i++){ t=sc.nextInt(); n=sc.nextInt(); if(t==1){ System.out.println(6000*n); }else if(t==2){ System.out.println(4000*n); }else if(t==3){ System.out.println(3000*n)...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
# Aizu Problem 0277: Ticket Sale import sys, math, os, datetime # read input: PYDEV = os.environ.get('PYDEV') if PYDEV=="True": sys.stdin = open("sample-input.txt", "rt") price = {1: 6000, 2: 4000, 3: 3000, 4: 2000} for k in range(4): t, n = [int(_) for _ in input().split()] print(n * price[t])
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
for i in range(4): a,b=map(int,input().split()) if a==1: print(b*6000) elif a==2: print(b*4000) elif a==3: print(b*3000) elif a==4: print(b*2000)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
data=[list(map(int,input().split())) for _ in range(4)] n=0 while n<4: a=data[n][0] b=data[n][1] if a==1: print(6000*b) n+=1 if a==2: print(4000*b) n+=1 if a==3: print(3000*b) n+=1 if a==4: print(2000*b) n+=1
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
t1,n1 = map(int,input().split()) t2,n2 = map(int,input().split()) t3,n3 = map(int,input().split()) t4,n4 = map(int,input().split()) if t1 == 1: print(n1*6000) elif t1 ==2: print(n1*4000) elif t1 ==3: print(n1*3000) elif t1 ==4: print(n1*2000) else: pass if t2 == 1: print(n2*6000) elif t2 ==2...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
for i in range(4): a,b=map(int,input().split()) if a==1: print(6000*b) if a==2: print(4000*b) if a==3: print(3000*b) if a==4: print(2000*b)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } private void run() { Scanner scanner = new Scanner(System.in); for (int i = 0; i < 4; i++) { int a = scanner.nextInt() - 1; int b = scanner.nextInt(); System.out.println(ticket[a] * b); } ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
import sys f = sys.stdin values = [None,6000,4000,3000,2000] for line in f: t, n = map(int, line.split()) print(values[t] * n)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main(){ int d[] = {6000,4000,3000,2000}; int m,n; for(int i=0;i<4;i++){ cin >> m >> n; cout << d[m-1]*n << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
price=[6000,4000,3000,2000] for _ in range(4): t,n=map(int,input().split()) print(price[t-1]*n)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int nban,nsyu; for(int i = 0; i<4; i++){ nsyu = sc.nextInt(); nban = sc.nextInt(); switch (nsyu){ case 1: System.out.println(nban*6000);break; case 2: System.out.println(nb...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python2
r={1:6,2:4,3:3,4:2} for i in [1]*4: t,n=map(int,raw_input().split()) print r[t]*n*1000
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int s[5] = { 0,6000,4000,3000,2000 }; int a, b; int main() { for (int i = 0; i < 4; i++) { cin >> a >> b; cout << s[a] * b << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
//2701 青木沙采 問2 import java.util.Scanner; public class Main{ public void solve(){ Scanner sc = new Scanner(System.in); int ninzu,k; int ban; for(int i=0;i<4;i++){ ban = sc.nextInt(); if(ban == 1){ k = 6000; }else if(ban == 2){ k = 4000; }else if(ban == 3){ k = 3000; }else{ k = 2...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<bits/stdc++.h> using namespace std; int main(void){ int a,b; int sum; int i; for(i=0;i<4;i++){ cin>>a>>b; if(a==1){ cout<<b*6000<<endl; } else if(a==2){ cout<<b*4000<<endl; } else if(a==3){ cout<<b*3000<<endl; } else{ cout<<b*2000<<endl; } } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
# coding: utf-8 # Your code here! ticket = {1:6000, 2:4000, 3:3000, 4:2000} for i in range(4): t, n = map(int, input().split()) print(ticket[t]*n)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<bits/stdc++.h> using namespace std; const int MoneyTable[] = { 0,6000,4000,3000,2000 }; int main() { int t, n; for (int i = 0; i < 4; ++i) { cin >> t >> n; cout << (n*MoneyTable[t]) << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; for(int i=0;i<4;i++){ cin >> a >> b; if(a == 1) cout << 6000*b << endl; if(a == 2) cout << 4000*b << endl; if(a == 3) cout << 3000*b << endl; if(a == 4) cout << 2000*b << endl; } return (0); }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main(){ int kane[] = {0,6000,4000,3000,2000}; for(int i = 0; i < 4; i++){ int t,n,sum = 0; cin >> t >> n; sum += kane[t] * n; cout << sum << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<stdio.h> int main(void){ int t,n,a[]={6000,4000,3000,2000},i,x[10]; for(i=0;i<4;i++){ scanf("%d%d",&t,&n); x[i]=a[t-1]*n; } for(i=0;i<4;i++) printf("%d\n",x[i]); return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<cstdio> using namespace std; int main(void) { int nedan[5]={0,6000,4000,3000,2000}; int t,n; int kin,i; for(i=0;i<4;i++) { scanf("%d %d",&t,&n); kin=nedan[t]*n; printf("%d\n",kin); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { int a[] = { 6000, 4000, 3000, 2000 }; Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int t = sc.nextInt(); int n = sc.nextInt(); System.out.println(a[t - 1] * n); } } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
//2714 加藤聖弥 問2 import java.util.Scanner; public class Main{ int [] seki={0,6000,4000,3000,2000}; int t; int n; int k; int kin; public void solve(){ Scanner sc=new Scanner(System.in); k=0; while(k<4){ t=sc.nextInt(); n=sc.nextInt(); kin...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); int kane; int[] kingaku = new int [4]; int n; public void syurui(){ for(n = 0;n <= 3;n++){ int syurui = sc.nextInt(); int maisu = sc.nextInt(); switch(syurui){ case 1: kane = 6000; break; case 2: k...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main() { int a[4], b, c, n = 4; a[0] = 6000; a[1] = 4000; a[2] = 3000; a[3] = 2000; while( n-- ) { cin >> b >> c; cout << a[b-1] * c << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<bits/stdc++.h> #define rep(i,n)for(int i=0;i<n;i++) using namespace std; typedef long long ll; typedef pair<int, int>P; int main() { int k[] = { 6000,4000,3000,2000 }; rep(i, 4) { int a, b; cin >> a >> b; cout << k[--a] * b << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
x, a=map(int,input().split()) y, b=map(int,input().split()) z, c=map(int,input().split()) r, d=map(int,input().split()) if x==2 or x==4: t=8000//x*a print(t) elif x==1: t=6000*a print(t) else: t=3000*a print(t) if y==2 or y==4: t=8000//y*b print(t) elif y==1: t=6000*b pr...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main{ public void solve(){ Scanner sc=new Scanner(System.in); int hito,i,ban,uriage; for(int a=0; a<4;a++){ ban=sc.nextInt(); if(ban==1){ i=6000; }else if(ban ==2){ i=4000; }else if(ban ==3){ i=3000; }else{ i=2000; } hito=sc...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; class Main{ int tiket[]={0,6000,4000,3000,2000}; int t,n,uriage; public void solve(){ Scanner sc=new Scanner(System.in); for(int i=1;i<=4;i++){ t=sc.nextInt(); n=sc.nextInt(); uriage=tiket[t]*n; System.out.println(uriage); } } publ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t1 = scanner.nextInt(); int n1 = scanner.nextInt(); int c1 = 0; int t2 = scanner.nextInt(); int n2 = scanner.nextInt(); int ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main(){ int cla,yen; for(int i=0;i<4;i++){ cin>>cla>>yen; if(cla==1){ cout<<6000*yen<<endl; }else if(cla==2){ cout<<4000*yen<<endl; }else if(cla==3){ cout<<3000*yen<<endl; }else if(cla==4){ cout<<2000*yen<<endl; } } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int tt[]={0,6000,4000,3000,2000}; int main(){ int t,n; while(cin >> t >> n){ cout << tt[t]*n << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<stdio.h> int main(void) { int a,b,n,i; for(i=0;i<4;i++){ scanf("%d %d2",&a,&b); if(a==1) n=b*6000; if(a==2) n=b*4000; if(a==3) n=b*3000; if(a==4) n=b*2000; printf("%d\n",n); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
P = [0,6000,4000,3000,2000] for i in range(4): t,n = map(int,input().split()) print(n*P[t])
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] t= {6000,4000,3000,2000}; for(int i=0;i<4;i++) { System.out.println(t[sc.nextInt()-1]*sc.nextInt()); } } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
dic = {1:6000, 2:4000, 3:3000, 4:2000} for _ in range(4): t, n = map(int, input().split()) print(dic[t] * n)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
while True: try: a=list(map(int,input().split())) #listA<-[1,2,2,3,1] #ここに逐次処理を書けばいいと思う。 if a[0]==1: print(a[-1]*6000) elif a[0]==2: print(a[-1]*4000) elif a[0]==3: print(a[-1]*3000) else: print(a[-1]*2000) ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> #include <algorithm> using namespace std; int main(){ int d[4]={0}; int r[4]={6000,4000,3000,2000}; for(int i=0;i<4;i++){ int a,b; cin>>a>>b; d[a-1]=b; cout<<d[a-1]*r[a-1]<<endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; class Main{ public void solve(){ Scanner sc =new Scanner(System.in); int ban,hito,uriage,i; for(int b=0;b<4;b++){ ban=sc.nextInt(); if(ban==1){ i=6000; }else if(ban==2){ i=4000; }else if(ban==3){ i=3000; }else{ i=2000; } hito=sc.nextInt(); ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int[] value = {0,6000,4000,3000,2000}; while(stdIn.hasNext()) System.out.println(value[stdIn.nextInt()]*stdIn.nextInt()); } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <stdio.h> int main(void) { int type, num; int price[4] = {6000, 4000, 3000, 2000}; while(scanf("%d %d\n", &type, &num) == 2) { printf("%d\n", price[type-1]*num); }; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<stdio.h> int main() { int S=6000,A=4000,B=3000,C=2000,a,b,i; for(i=0;i<4;i++){ scanf("%d %d",&a,&b); if(a==1){ S=S*b; printf("%d\n",S); }else if(a==2){ A=A*b; printf("%d\n",A); }else if(a==3){ B=B*b; printf("%d\n",B); }else if(a==4){ C=C*b; printf("%d\n",C); } } return(0); }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <cstdio> int a[4] = {6000, 4000, 3000, 2000}; int main(){ for(int i = 0; i < 4; i++){ int t, n; scanf("%d%d", &t, &n); t--; printf("%d\n", a[t]*n); } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
price=[6000,4000,3000,2000] for i in range(4): a,b=map(int,input().split()) print(price[a-1]*b)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main(void){ // Your code here! int e,y; for(int a=1;a<=4;a++){ cin>>e>>y; if(e==1){cout<<6000*y<<endl;} else if(e==2){cout<<4000*y<<endl;} else if(e==3){cout<<3000*y<<endl;} else if(e==4){cout<<2000*y<<endl;} } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <cstdio> using namespace std; int main(void){ int c[] = {0, 6000, 4000, 3000, 2000}; int t, p; for (int i = 0; i < 4; i++) { scanf("%d %d", &t, &p); printf("%d\n", c[t]*p); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
a,A=map(int,input().split()) b,B=map(int,input().split()) c,C=map(int,input().split()) d,D=map(int,input().split()) if (a == 1): print(A*6000) elif (a == 2): print(A*4000) elif (a == 3): print(A*3000) elif (a == 4): print(A*2000) if (b == 1): print(B*6000) elif (b == 2): print(B*4000) elif (...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int ans[10]={0},mm[5]={0,6000,4000,3000,2000}; for(int i=0;i<4;i++){ int t,n; cin>>t>>n; ans[i]=mm[t]*n; } for(int i=0;i<4;i++){ cout<<ans[i]<<endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
# coding: utf-8 # Your code here! t1,n1=map(int,input().split()) t2,n2=map(int,input().split()) t3,n3=map(int,input().split()) t4,n4=map(int,input().split()) if t1==1: print(6000*n1) if t1==2: print(4000*n1) if t1==3: print(3000*n1) if t1==4: print(2000*n2) if t2==1: print(6000*n2) if t2==2: p...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); int kingaku; int[] goukei = new int[4]; int n; public void syurui(){ for(n=0;n<=3;n++){ int syurui = sc.nextInt(); int maisuu = sc.nextInt(); switch (syurui){ case 1: kingaku = 6000;break; case 2: kingaku...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main (){ int i,a,b,x; for( i = 1; i <= 4; i++ ){ cin >> a >> b; if( a==1 ) x=b*6000; else if( a==2 ) x=b*4000; else if( a==3 ) x=b*3000; else if( a==4 ) x=b*2000; cout << x <<endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <cstdio> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ int p[]={6000,4000,3000,2000}; rep(_,4){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",p[a-1]*b); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
for i in range(1,5): t_i,n_i=map(int,input().split()) if t_i==1: print(n_i*6000) if t_i==2: print(n_i*4000) if t_i==3: print(n_i*3000) if t_i==4: print(n_i*2000)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> #include <algorithm> using namespace std; int main(){ int a,b; int ticket[4] = {6000,4000,3000,2000}; for(int i=0;i<4;i++){ cin >> a >> b; cout << ticket[a-1]*b << endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> int main(){ int a,b; for(int i=0;i<4;++i){ std::cin>>a>>b; int m=0; if(a==1)m=6000; else if(a==2)m=4000; else if(a==3)m=3000; else m=2000; std::cout<<b*m<<std::endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main{ public void solve(){ Scanner sc = new Scanner(System.in); int t; int n; for(int i=0;i<4;i++){ t=sc.nextInt(); n=sc.nextInt(); if(t==1){ System.out.println(6000*n); }else if(t==2){ ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
x=[0,6000,4000,3000,2000] for i in range(1,5): t,n=map(int,input().split()) print(n*x[t])
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
P = [ 6000, 4000, 3000, 2000] while True: try: t, num = [int(x) for x in input().split()] except: break print(P[t-1]*num)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
for i in range(4): t1,n1=map(int,input().split()) if t1==1: print(n1*6000) elif t1==2: print(n1*4000) elif t1==3: print(n1*3000) elif t1==4: print(n1*2000)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
for i in range(4): t,n=map(int,input().split()) if t == 1: print(n*6000) if t == 2: print(n*4000) if t == 3: print(n*3000) if t == 4: print(n*2000)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<iostream> using namespace std; int main(){ int t, n; int V[5] = {0, 6000, 4000, 3000, 2000}; int F[5] = {0, 0, 0, 0, 0}; for ( int i = 0; i < 4; i++ ){ cin >> t >> n; cout << V[t]*n << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); for (int i = 0; i != 4; i++) { int t = scan.nextInt(); int n = scan.nextInt(); switch (t) { case 1: ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int t[4] = {6000, 4000, 3000, 2000}; int main(){ for(int x = 0; x < 4; x++){ int a, b; scanf("%d%d", &a, &b); printf("%d\n", t[--a]*b); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0; i < 4; i++) { int t = sc.nextInt(); int n = sc.nextInt(); if (t == 1) { System.out.println(n * 6000); } else if (t == 2) { System.out.println(n * 4000); ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<cstdio> const int p[] = { 6000, 4000, 3000, 2000 }; int main() { for( int i = 0; i != 4; ++i ) { int t, n; scanf( "%d%d", &t, &n ); printf( "%d\n", p[t-1]*n ); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
L = [6000,4000,3000,2000] for i in range(4): t,n = map(int,input().split()) print(L[t-1]*n)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
t1,n1=map(int,input().split()) t2,n2=map(int,input().split()) t3,n3=map(int,input().split()) t4,n4=map(int,input().split()) I=[t1,n1,t2,n2,t3,n3,t4,n4] i=0 while i<8: if I[i]==1: print(6000*I[i+1]) elif I[i]==2: print(4000*I[i+1]) elif I[i]==3: print(3000*I[i+1]) else: ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long int ll; int main(){ int x[]={6,4,3,2}; for(int i=0;i<4;i++){ int a,b; cin >> a >> b; cout << x[a-1]*1000*b << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include<stdio.h> int main(void) { int t,n,x[4],i,j; for(i=0;i<4;i++){ scanf("%d %d",&t,&n); if(t==1){ x[i]=n*6000; } if(t==2){ x[i]=n*4000; } if(t==3){ x[i]=n*3000; } if(t==4){ x[i]=n*2000; } } for(j=0;j<4;j++){ printf("%d\n",x[j]); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <cstdio> const int seat[4]{ 6000, 4000, 3000, 2000 }; int t, n; int main() { for (int i = 0; i < 4; i++) { scanf("%d", &t); scanf("%d", &n); printf("%d\n", seat[t - 1] * n); } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
python3
for i in range (4): t,n=map(int,input().split()) if t==1: print(6000*n) if t==2: print(4000*n) if t==3: print(3000*n) if t==4: print(2000*n)
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> #include<string> #include<cstdio> #include<cmath> #include<algorithm> #include<vector> using namespace std; int main(){ int t,n,i; int a[4]={6000,4000,3000,2000}; for(i=0;i<4;i++){ cin>>t>>n; cout<<a[t-1]*n<<endl; } return 0; }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main(void){ int t,n,tmp[]={6000,4000,3000,2000}; for (int i = 0; i<4; i++){ cin >> t >> n; cout << tmp[t-1] * n << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main{ public void solve(){ Scanner sc=new Scanner(System.in); for(int r=0;r<4;r++){ int num=sc.nextInt(); int su=sc.nextInt(); switch(num){ case 1: System.out.println(su*6000); ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
cpp
#include <iostream> using namespace std; int main(){ for(int i = 0; 4 > i; i++){ int a,b; cin>>a>>b; if(a==1)cout << 6000*b << endl; else if(a==2)cout << 4000*b << endl; else if(a==3)cout << 3000*b << endl; else cout << 2000*b << endl; } }
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; class Main{ int ninzu,k; int ban; public void solve(){ Scanner sc = new Scanner(System.in); for(int i=0;i<4;i++){ ban= sc.nextInt(); if(ban==1){ k = 6000; }else if(ban==2){ k = 4000; }else if(ban==3){ k = 3000; }else{ k ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int i,t,m,k; for(i=0; i<4; i++) { t = sc.nextInt(); m = sc.nextInt(); switch(t) { case 1: k = 6000 * m; break; case 2: k = 4000 * m; break; case 3: k =...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
CORRECT
java
import java.util.*; class Main{ Main(){ Scanner sc =new Scanner(System.in); int a ,c; for(int i=0;i<4;i++){ a=sc.nextInt(); c=sc.nextInt(); int b=0; switch(a){ case 1: b+=6000*c; break; case 2: b+=4000*c; break; case 3: b+=3000*c; break; case 4: b+=2000*c; ...