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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int a = 0, b[5], t, c[5]; for (t = 0; t < 4; t++) { scanf("%d", &a); scanf("%d", &b[a]); c[1] = 6000; c[2] = 4000; c[3] = 3000; c[4] = 2000; printf("%d\n", c[a] * b[a]); } while (1) { } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int N, sum; vector<int> x, y, b, p; cin >> N; for (int i = 0; i < N; i++) { int X, Y, B, P; cin >> X >> Y >> B >> P; x.push_back(X); y.push_back(Y); b.push_back(B); p.push_back(P); } for (int i = 0; i < N; i++) { sum = (x[i] * b[i]) + (y[i] * p[i]); if (b[i] >= 5 && p[i] >= 2) cout << (sum * 0.8) << endl; else if (b[i] < 5 && p[i] < 2) if (((((5 - b[i]) * x[i]) + ((2 - p[i]) * y[i]) + sum) * 0.8) < sum) cout << ((((5 - b[i]) * x[i]) + ((2 - p[i]) * y[i]) + sum) * 0.8) << endl; else if (b[i] < 5 && ((((5 - b[i]) * x[i]) + sum) * 0.8) < sum) cout << ((((5 - b[i]) * x[i]) + sum) * 0.8) << endl; else if (p[i] < 2 && ((((2 - p[i]) * y[i]) + sum) * 0.8) < sum) cout << ((((2 - p[i]) * y[i]) + sum) * 0.8) << endl; else 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t[4],i,n[4],pokemon[4]; for(i=0;i<4;i++){ scanf("%d %d",&t[i],&n[i]); if(1==t) pokemon[i]=6000*n; else if(2==t) pokemon[i]=4000*n; else if(3==t) pokemon[i]=3000*n; else pokemon[i]=2000*n; } for(i=0;i<4;i++) printf("%d\n",pokemon[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main() { int a, b, c = 0; int out[4]; while (c < 4) { scanf("%d %d", &a, &b); if (a == 1) { out[c] = 6 * b; } else if (a == 2) { out[c] = 4 * b; } else if (a == 3) { out[c] = 3 * b; } else { out[c] = 2 * b; } c++; } for (c = 0; c < 4; c++) printf("%d000\n", out[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <iosream> using namespace std; int A[4],B[4],C[4]; int main(){ cin >>A[0]>>B[0]>>A[1]>>B[1]>>A[2]>>B[2]>>A[3]>>B[3]; for(int i = 0; i < 4; i++){ if(A[i]==1){ C[i]=6000*B[i]; }else if(A[i]==2){ C[i]=4000*B[i]; }else if(A[i]==3){ C[i]=3000*B[i]; }else{ C[i]=2000*B[i]; } cout << C[0] <<C[1] <<C[2] <<C[3]; }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> 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]] * 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
public class Main { Scanner sc = new Scanner(System.in); int t; int n; int tanka; int kingaku; public void kei(){ t = sc.nextInt(); n = sc.nextInt(); switch(t){ case 1:tanka = 6000; kingaku = tanka * n; break; case 2:tanka = 4000; kingaku = tanka * n; break; case 3:tanka = 3000; kingaku = tanka * n; break; case 4:tanka = 2000; kingaku = tanka * n; break; } } public void hyouji(){ System.out.println(kingaku); } /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Main go = new Main(); go.kei(); go.hyouji(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (int A = 0; A < 4; A++) { cin >> a >> b; if (a == 1) cout << 6000 * b << endl; if (a == 2) cout << 4000 * b << endl; if (a == 3) cout << 1000 * b << endl; else 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main2 { public Main2(){ Scanner sc = new Scanner(System.in); int t,n,x; int sa[]=new int[4];{ for(x=0; x<=4 ;x++){ t = sc.nextInt(); n = sc.nextInt(); switch(t){ case 1: System.out.println(6000*n);break; case 2: System.out.println(4000*n);break; case 3: System.out.println(3000*n);break; case 4: System.out.println(2000*n);break; } } } } /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Main2 sa = new Main2(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int f,n,u,i; for (i = 0; i < 4; i++) { scanf_s("%d %d", &f, &n); switch (f) { case 1: u = 6000 * n; break; case 2: u = 4000 * n; break; case 3: u = 3000 * n; break; case 4: u = 2000 * n; break; } printf("%d\n", u); } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(){ int i,n,m,s,a,b,c; for(i=0;i<4;i++){ scanf("%d%d",&n,&m); switch (n){ case 1: s=m*6000; break; case 2: a=m*4000; break; case 3: b=m*3000; break; case 4: c=m*2000; break; } } printf("%d\n%d\n%d\n%d\n",s,a,b,c); return0; }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int[] sell = new int[5]; int t,n; int ans=0; for(int i=0;i<4;i++){ t=sc.nextInt(); n=sc.nextInt(); sell[t]=n; } ans = 6000*sell[1]+4000*sell[2]+3000*sell[3]+2000*sell[4]; System.out.println(ans); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <iostream> using namespace std; int main(){ int t,n; for(int i = 0; i < 4;i++){ int result = 0 cin >> t >> n; switch (t) { case 1: result = 6000*n; break; case 2: result = 4000*n; break; case 3: result = 3000*n; break; case 4: result = 2000*n; break; } cout << result << endle; } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; class Main2{ 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<5;i++){ t=sc.nextInt(); n=sc.nextInt(); uriage=tiket[t]*n; System.out.println(uriage); } } public static void main(String[] args){ Main2 obj=new Main2(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <stdio.h> #include <algorithm> #include <stdlib.h> #include <string.h> #include <queue> #define rep(i,n) for(int i = 0; i < n; ++i) #define rrep(i,n) for(int i = 1; i <= n; ++i) using namespace std; typedef pair<int,int> P; const int INF = 1000000000; int main(){ int i,a,b; rep(i,4){ int scr; scanf("%d%d",&a,&b); switch(a){ case: 1 scr = 6000*b break; case: 2 scr = 4000*b break; case: 3 scr = 3000*b break; case: 4 scr = 2000*b break; } printf("%d\n",scr); } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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 = 2000; } ninzu = sc.nextInt(); int uriage = k*ninzu; System.out.println(uriage); } } public static void main(String[] args){ Main obj = new Main(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
//2706 ηŸ³δΊ•ε€ιˆ΄ 問5 import java.util.Scanner; public class Main2{ int n,t,a; 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(String[] args){ Main2 obj=new Main2(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <iostream> using namespace std; void main () { int t; int n; int result; for (int i = 0; i < 4; i++) { cin >> t >> n; switch (t) { case 1: result = 6000 * n; return; case 2: result = 4000 * n; return; case 3: result = 3000 * n; return; case 4: result = 2000 * n; return; } cout << result << 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, uriage, i, gaku, kingaku, goukei; for (i = 0; i < 5; i++) scanf("%d %d", &t, &n); switch (t) { case 1: uriage = n * 6000; break; case 2: gaku = n * 4000; break; case 3: kingaku = n * 3000; break; case 4: goukei = n * 2000; break; } printf("%d\n", uriage); printf("%d\n", gaku); printf("%d\n", kingaku); printf("%d\n", goukei); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApplication1 { class ClassMain { public static void Main(String[] args) { //string line; int[] uriage = new int[5]; for (int i = 0; i < 4; i++) { int[] ints = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if(ints[0]==1){ uriage[1] += 6000 * ints[1]; } if (ints[0] == 2) { uriage[2] += 4000 * ints[1]; } if (ints[0] == 3) { uriage[3] += 3000 * ints[1]; } if (ints[0] == 4) { uriage[4] += 2000 * ints[1]; } } Console.WriteLine(uriage[1]); Console.WriteLine(uriage[2]); Console.WriteLine(uriage[3]); Console.WriteLine(uriage[4]); /*while ((line = Console.ReadLine()) != null) { int[] ints = line.Split(' ').Select(int.Parse).ToArray(); int n = ints[0]; //int n = int.Parse(line); if (n == 0) { break; } int m = ints[1]; Console.WriteLine(n - m); int k = 6; while (k-- > 0) { ints = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); n = ints[0]; m = ints[1]; Console.WriteLine(n - m); } break; }*/ } } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (int i = 0; i < 7; ++i) { cin >> a >> b; if (a == 1) b = b * 6000; if (a == 2) b = b * 4000; if (a == 3) b = b * 3000; if (a == 4) b = b * 2000; cout << 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
T=[6000,4000,3000,2000] puts$<.map{|e|a,b=gets.split.map(&:to_i);T[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> int main() { int t, n, sum = 0; for (int i = 0; i < 4; i++) { scanf("%d %d", &t, &n); if (t == 1) sum += 6000 * n; if (t == 2) sum += 4000 * n; if (t == 3) sum += 3000 * n; if (t == 4) sum += 2000 * n; } printf("%d\n", 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, d, cnt = 1; while (cnt < 4) { scanf("%d %d", &t, &n); if (t == 1) d = 6000 * n; else if (t == 2) d = 4000 * n; else if (t == 3) d = 3000 * n; else d = 2000 * n; printf("%d\n", d); cnt++; } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> const int seat[4]{6000, 4000, 3000, 2000}; int main() { int t, n, c = 0; for (int i = 0; i < 4; i++) { scanf("%d", &t); scanf("%d", &n); c += seat[t - 1] * n; } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, i = 4; while (i != 0) { scanf("%d %d", &t, &n); switch (t) { case 1: printf("%d\n", 6000 * n); case 2: printf("%d\n", 4000 * n); case 3: printf("%d\n", 3000 * n); case 4: printf("%d\n", 2000 * n); } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
//2706 ηŸ³δΊ•ε€ιˆ΄ 問5 import java.util.Scanner; public class Main2{ 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(String[] args){ Main2 obj=new Main2(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main{ public void solve(){ Scanner sc = new Scanner(System.in); int syu,mai; for(int i=0;i<4,i++){ syu = sc.nextInt(); mai = sc.nextInt(); switch(syu){ case 1: System.out.println(6000*mai); break; case 2: System.out.println(4000*mai); break; case 3: System.out.println(3000*mai); break; case 4: System.out.println(2000*mai); break; } } } public static void main(String[]args){ Main obj = new Main(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (int i = 0; i < 7; i++) { 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); int t; int n; int tanka; int kingaku; public void kei(){ t = sc.nextInt(); n = sc.nextInt(); switch(t){ case 1:tanka = 6000; kingaku = tanka * n; break; case 2:tanka = 4000; kingaku = tanka * n; break; case 3:tanka = 3000; kingaku = tanka * n; break; case 4:tanka = 2000; kingaku = tanka * n; break; } } public void hyouji(){ System.out.println(kingaku); } /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Main go = new Main(); go.kei(); go.hyouji(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main() { int a, b, c = 0; int out[4]; while (c < 4) { scanf("%d %d", &a, &b); if (a == 1) { out[c] = 6 * b; } else if (a == 2) { out[c] = 4 * b; } else if (a == 3) { out[c] = 3 * b; } else { out[c] = 2 * b; } c++; } for (c = 0; c < 4; c++) { if (!out[c]) puts("0"); printf("%d000\n", out[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#encoding:utf-8 No.0277 2014.11.10 sale = Array.new while gets sale.push gets.chomp.split.map{|elem| elem.to_i} end sale.each do |i| if i[0] == 1 puts 6000*i[1] elsif i[0] == 2 puts 4000*i[1] elsif i[0] == 3 puts 3000*i[1] else i[0] == 4 puts 2000*i[1] end end
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int N, sum; vector<int> x, y, b, p; cin >> N; for (int i = 0; i < N; i++) { int X, Y, B, P; cin >> X >> Y >> B >> P; x.push_back(X); y.push_back(Y); b.push_back(B); p.push_back(P); } for (int i = 0; i < N; i++) { sum = (x[i] * b[i]) + (y[i] * p[i]); if (b[i] >= 5 && p[i] >= 2) cout << (sum * 0.8) << endl; else if (b[i] < 5 && p[i] < 2) cout << sum << endl; else if (b[i] < 5 && ((((5 - b[i]) * x[i]) + sum) * 0.8) < sum) cout << ((((5 - b[i]) * x[i]) + sum) * 0.8) << endl; else if (p[i] < 2 && ((((2 - p[i]) * y[i]) + sum) * 0.8) < sum) cout << ((((2 - p[i]) * y[i]) + sum) * 0.8) << endl; else 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
package a2; import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Scanner sc = new Scanner(System.in); int kin = 0; int a,b; for(int i=0;i<4;i++){ a = sc.nextInt(); b = sc.nextInt(); switch (a) { case 1: kin =6000*b; break; case 2: kin =4000*b; break; case 3: kin =3000*b; break; case 4: kin =2000*b; break; } System.out.println(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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, i, a[4]; for (i = 0; i < 4; i++) { scanf("%d %d", &t, &n); if (t == 1) { a[i] = n * 6000; } else if (t == 2) { a[i] = n * 4000; } else if (t == 3) { a[i] = n * 3000; } else { a[i] = n * 2000; } } for (i = 0; i < 4; i++) { printf("%d\n", a[i]); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
package a2; import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Scanner sc = new Scanner(System.in); int[] sa = new int[4]; for(int i=0;i<4;i++){ int a = sc.nextInt(); int b = sc.nextInt(); switch (a){ case 1: sa[0]+=6000*b; case 2: sa[1]+=4000*b; case 3: sa[2]+=3000*b; case 4: sa[3]+=2000*b; } } for(int i = 0;i<4;i++){ System.out.println(sa[i]); } } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t,n,i,Sseki,Aseki,Bseki,Cseki; for(i=1;i<5;i++){ scanf("%d%d",&t,&n); switch (t) { case 1: Sseki=6000*n; break; case 2: Aseki=3000*n; break; case 3: Bseki=3000*n; break; case 4: Cseki=2000*n; break; default break; } if(t==1){ printf("%d\n",Sseki); } else if(t==2){ printf("%d\n",Aseki); } else if(t==3){ printf("%d\n",Bseki); } else{ printf("%d\n",Cseki); } } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
using System; class Program { static void Main() { for (int i = 0; i < 4; i++) { int[] tickets = new int[]{ 6000, 4000, 3000, 2000 }; string[] strs = Console.ReadLine().Split(' '); Console.WriteLine(tickets[int.Parse(strs[0]) - 1] * int.Parse(strs[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main1 { /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Scanner sc = new Scanner(System.in); int t=0; int n=0; int z; for(z=0;z<4;z++); t = sc.nextInt(); n = sc.nextInt(); switch(t){ case 1: System.out.println(n*6000);break; case 2: System.out.println(n*4000);break; case 3: System.out.println(n*3000);break; case 4: System.out.println(n*2000);break; } } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, d[4], cnt = 0; while (cnt != 3) { scanf("%d %d", &t, &n); if (t == 1) d[cnt] = 6000 * n; else if (t == 2) d[cnt] = 4000 * n; else if (t == 3) d[cnt] = 3000 * n; else d[cnt] = 2000 * n; cnt++; } cnt = 0; while (cnt != 3) { printf("%d\n", d[cnt]); cnt++; } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, uriage, i, gaku, kingaku, goukei; for (i = 0; i < 5; i++) { scanf("%d %d", &t, &n); } switch (t) { case 1: uriage = n * 6000; break; case 2: gaku = n * 4000; break; case 3: kingaku = n * 3000; break; case 4: goukei = n * 2000; break; } printf("%d\n", uriage); printf("%d\n", gaku); printf("%d\n", kingaku); printf("%d\n", goukei); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; const int table[] = {-1, 6000, 4000, 3000, 2000}; int main() { int res = 0; for (int i = 0; i < 4; i++) { int t, n; scanf("%d %d", &t, &n); res += table[t] * n; } printf("%d\n", res); }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; class exe0277 { public static void main(String args[]) { Scanner scan=new Scanner(System.in); int s[]=new int[4]; while(scan.hasNext()) { int t=scan.nextInt(); int n=scan.nextInt(); if(t==1)s[t-1]+=6000*n; if(t==2)s[t-1]+=4000*n; if(t==3)s[t-1]+=3000*n; if(t==4)s[t-1]+=2000*n; } for(int i=0;i<4;i++) { System.out.println(s[i]); } } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int price[] = {6, 4, 3, 2}; int i; for (i = 0; i < 4; i++) { int t, n; scanf("%d %d", &t, &n); price[t - 1] *= n; } for (i = 0; i < 4; i++) { printf("%d\n", price[i] * 1000); } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t,n,i,iti,ni,san,si; for(i=1;i<5;i++){ scanf("%d%d",&t,&n); switch (t) { case 1: iti=6000*n; break; case 2: ni=3000*n; break; case 3: san=3000*n; break; case 4: si=2000*n; break; default break; } if(t==1){ printf("%d\n",iti); } else if(t==2){ printf("%d\n",ni); } else if(t==3){ printf("%d\n",san); } else{ printf("%d\n",si); } } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int ticket[] = {0, 2000, 3000, 4000, 6000}; int t, n; while (cin >> t >> n) 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
package a2; import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Scanner sc = new Scanner(System.in); int kin = 0; int a,b; for(int i=0;i<4;i++){ a = sc.nextInt(); b = sc.nextInt(); //kin = 0; switch (a) { case 1: kin =6000*b; break; case 2: kin =4000*b; break; case 3: kin =3000*b; break; case 4: kin =2000*b; break; } System.out.print(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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
//2702 青山理恡 問2 import java.util.Scanner; public class Q0277{ int syurui[]={6000,4000,3000,2000}; int num; int maisuu; int urikin; public void solve(){ Scanner sc = new Scanner(System.in); for(int i=1;i<=4;i++){ num = sc.nextInt(); maisuu = sc.nextInt(); System.out.println((syurui[num-1])*maisuu); } } public static void main(String[] args){ Q0277 obj = new Q0277(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t[4],i,n[4],pokemon[4]; for(i=0;i<4;i++){ scanf("%d %d",&t[i],&n[i]); switch(t){ case 1: pokemon[1]=6000*n; case 2: pokemon[2]=4000*n; case 3: pokemon[3]=3000*n; case 4: pokemon[4]=2000*n; } for(i=1;i<=4;i++) printf("%d\n",pokemon[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(){ int i,input,a[4],b; for(i=0;i<4;i++){ scanf("%d%d",&input,&b); case (input){ case 1: a[i]=6000*b; case 2: a[i]=4000*b; case 3: a[i]=3000*b; case 4: a[i]=2000*b; } } for(i=0;i<4;i++){ printf("%d\n",a[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int l[2][4]; for (int i = 0; i < 4; i++) { cin >> l[0][i] >> l[1][i]; } for (int i = 0; i < 4; i++) { switch (l[0][i]) { case 1: cout << l[1][i] * 6000; break; case 2: cout << l[1][i] * 4000; break; case 3: cout << l[1][i] * 3000; break; case 4: cout << l[1][i] * 2000; break; default: break; } } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#define scanf_s scanf #include<stdio.h> int main(void) { int a, b, i, mo[4] = { 6000,4000,3000,2000 }; for (i = 0; i < 4; i++) { scanf_s("%d %d", &a, &b); printf("%d\n", mo[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
//2701 ι’ζœ¨ζ²™ι‡‡ 問2 import java.util.Scanner; public class Q0277{ int syurui[]={6000,4000,3000,2000}; int mun; int maisuu; int urikin; public void soleve(){ Scanner sc = new Scanner(System.in); for(int i=1;i<=4;i++){ mun = sc.nextInt(); maisuu = sc.nextInt(); System.out.println((syurui[mun-1]*maisuu)); } } public static void main(String[] args){ Q0277 obj = new Q0277(); obj.soleve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int i, n, m, s, a, b, c; for (i = 0; i < 4; i++) { scanf("%d%d", &n, &m); switch (n) { case 1: s = m * 6000; break; case 2: a = m * 4000; break; case 3: b = m * 3000; break; case 4: c = m * 2000; break; } } printf("%d\n%d\n%d\n%d\n", s, a, b, 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; int ticket[4] = {6000, 4000, 3000, 2000}; for (int i = 0; i < 7; 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int a; int b; int x; for (;;) { scanf("%d %d", &a, &b); if (a == 1) { x = 6000 * b; printf("%d\n", x); } if (a == 2) { x = 4000 * b; printf("%d\n", x); } if (a == 3) { x = 3000 * b; printf("%d\n", x); } if (a == 4) { x = 2000 * b; printf("%d\n", x); } } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t,n,i,Sseki,Aseki,Bseki,Cseki; for(i=1;i<5;i++){ scanf("%d%d",&t,&n); swich (t) { case 1: Sseki=6000*n; break; case 2: Aseki=3000*n; break; case 3: Bseki=3000*n; break; case 4: Cseki=2000*n; break; default break; } if(t==1){ printf("%d\n",Sseki); } else if(t==2){ printf("%d\n",Aseki); } else if(t==3){ printf("%d\n",Bseki); } else{ printf("%d\n",Cseki); } } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
using System; using System.Collections.Generic; namespace AOJ.Volume2 { public class TicketSales { public static int Main() { var price = new Dictionary<string, int>() { {"1", 6000 }, {"2", 4000 }, {"3", 3000 }, {"4", 2000 } }; while (true) { var input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { break; } var data = input.Split(' '); int sales = price[data[0]] * int.Parse(data[1]); for (int i = 1; i < 4; i++) { data = Console.ReadLine().Split(' '); sales += price[data[0]] * int.Parse(data[1]); } Console.WriteLine(sales); } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, i, iti, ni, san, si; for (i = 1; i < 5; i++) { scanf("%d%d", &t, &n); switch (t) { case 1: iti = 6000 * n; break; case 2: ni = 3000 * n; break; case 3: san = 3000 * n; break; case 4: si = 2000 * n; break; } if (t == 1) { printf("%d\n", iti); } else if (t == 2) { printf("%d\n", ni); } else if (t == 3) { printf("%d\n", san); } else { printf("%d\n", si); } } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t1, t2, t3, t4, n1, n2, n3, n4; scanf("%d %d %d %d", &n1, &n2, &n3, &n4); t1 = 6000 * n1; t2 = 4000 * n2; t3 = 3000 * n3; t4 = 2000 * n4; printf("%d\n %d\n %d\n %d\n", t1, t2, t3, t4); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include<stdio.h> int main(void) { int n,j,i; int tike[4]; int en[4]; int temp; scnaf(n); for(i=0;i<n;i++) scnaf("%d %d",&en[i],&tike[i]); for(i=0;i<n+1;i++){ for(j=0;i+1;j<n++){ if(tike[i]>tike[j]){ temp=tike[i]; tike[i]=tike[j]; en[i]=en[j]; en[j]=temp; } } } for(i=0;i<4;i++){ printf("%d\n",tike[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
using System; class Program { static void Main() { for (int i = 0; i < 4; i++) { int[] tickets = { 6000, 4000, 3000, 2000 }; string[] strs = Console.ReadLine().Split(' '); Console.WriteLine(tickets[Int32.Parse(strs[0]) - 1] * Int32.Parse(strs[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class tiketto{ int kin[]= {6000,4000,3000,2000}; int t; int n; int go; public void solve(){ Scanner sc = new Scanner(System.in); for(int i=0;i<=3;i++){ t = sc.nextInt(); n = sc.nextInt(); t = t-1; go = n*kin[t]; System.out.println(go); } } public static void main(String[] args){ tiketto obj = new tiketto(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <cstdio> #include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <sstream> #include <vector> #include <time.h> #include <algorithm> using namespace std; int main(){ int price = [6000,4000,3000,2000]; int a,b; for(int i = 1;i <= 4;i++){cin >> a >> b;cout << b * price[a-1] << 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t,n,x[4],i for(i=0;i<4;i++){ scanf("%d %d",&t,&n); if(t==1){ a[i]=n*6000; } if(t==2){ a[i]=n*4000; } if(t==3){ a[i]=n*3000; } if(t==4){ a[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main2{ 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<5;i++){ t=sc.nextInt(); n=sc.nextInt(); uriage=tiket[t]*n; System.out.println(uriage); } } public static void main(String[] args){ Main2 obj=new Main2(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
var input = 0; var output = 0; process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function (chunk) { chunk.split("\s") console.log(output); });
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
public class Main { int []t = {3,1,4,2}; int []n = {10,4,1,5}; int[] iei = new int[4]; int[] gokei= new int[4]; int kusa; int ee; int ww; public void me(){ for(kusa=0;kusa<4;kusa++){ ee = t[kusa]; switch(ee){ case 1: gokei[kusa] = n[kusa]* 6000; break; case 2: gokei[kusa] = n[kusa] *4000; break; case 3: gokei[kusa] = n[kusa] *3000; break; case 4: gokei[kusa] = n[kusa]* 2000; break; } } } public void hyouji(){ for(ww=0;ww<4;ww++){ System.out.println(gokei[ww]); } } /** * @param args */ public static void main(String[] args) { Main A = new Main(); A.me(); A.hyouji(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a >> b) { switch (a) { case 1: cout << (long long)b * 6000 << "\n"; break; case 2: cout << (long long)b * 4000 << "\n"; case 3: cout << (long long)b * 3000 << "\n"; case 4: cout << (long long)b * 2000 << "\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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(){ int i,input,a[4],b; for(i=0;i<4;i++){ scanf("%d%d",&input,&b); case (input){ case 1: a[i]=6000*b; break; case 2: a[i]=4000*b; break; case 3: a[i]=3000*b; break; case 4: a[i]=2000*b; break; } } for(i=0;i<4;i++){ printf("%d\n",a[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c for(int i =0;i<4;i++){ cin >> a>>b; if (a == 1) { c = 6000*b; cout << c<<endl; } else if (a == 2) { c = 4000*b; cout <<c<<endl; } else if (a ==3) { c = 3000*b; cout <<c<<endl; } else if (a ==4) { c = 2000*b; cout <<c<<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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { vector<int> v(5); for (int i = 0; i < 4; i++) { int hoge, tyome; cin >> hoge >> tyome; v[hoge] = tyome; } cout << v[4] * 6000 << "\n" << v[3] * 4000 << "\n" << v[2] * 3000 << "\n" << v[1] * 2000 << 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, i, g; for (i = 0; i < 4; i++) { scanf("%d%d", &t, &n); if (t == 1) { g = 6000 * n; printf("%d", g); } else if (t == 2) { g = 4000 * n; printf("%d", g); } else if (t == 3) { g = 3000 * n; printf("%d", g); } else if (t == 4) { g = 2000 * n; printf("%d", g); } } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#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){ a[i]=n*6000; } if(t==2){ a[i]=n*4000; } if(t==3){ a[i]=n*3000; } if(t==4){ a[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t,n,d[4],cnt=0; while(cnt!=3){ scanf("%d %d",&t,&n); if(t==1) d[cnt]=6000*n; else if(t==2) d[cnt]=4000*n; else if(t==3) d[cnt]=3000*n; else d[cnt]=2000*n; cnt++; } cnt=0 while(cnt!=3) printf("%d\n",d[cnt]); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main.278{ 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.nextInt(); uriage=i*hito; System.out.println(uriage); } } public static void main(String[] args){ Main obj = new Main.278(); obj.solve(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
public class Main { Scanner sc =new Scanner(System.in); int kingaku; int[] goukei = new int[4]; int x; public void syurui(){ for(x=0;x<=3;x++){ int syurui = sc.nextInt(); int maisuu = sc.nextInt(); switch(syurui){ case 1: kingaku = 6000; break; case 2: kingaku = 4000; break; case 3: kingaku = 3000; break; case 4: kingaku = 2000; break; } goukei[x] = kingaku * maisuu; } } public void hyouji(){ for(x=0;x<=3;x++){ System.out.println(goukei[x]); } } public static void main(String[] args) { Main hai = new Main(); hai.syurui(); hai.hyouji(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include<stdio.h> int main(void){ int i,t,n; for(i=0;i<4;i++){ scanf("%d %d",&t,&n); switch(t){ case 1: printf("%d\n",n*6000); break; case 2: printf("%d\n",n*4000); break; case 3: printf("%d\n",n*3000); break; case 4: printf("%d\n",n*2000); break; } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int t, n, d[4], cnt = 1; while (cnt != 4) { scanf("%d %d", &t, &n); if (t == 1) d[cnt] = 6000 * n; else if (t == 2) d[cnt] = 4000 * n; else if (t == 3) d[cnt] = 3000 * n; else d[cnt] = 2000 * n; cnt++; } while (cnt != 4) printf("%d\n", d[cnt]); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
using System; using System.Collections.Generic; namespace AOJ.Volume2 { public class TicketSales { public static int Main() { var price = new Dictionary<string, int>() { {"1", 6000 }, {"2", 4000 }, {"3", 3000 }, {"4", 2000 } }; int sales = 0; for(int i = 0; i < 4; i++) { var input = Console.ReadLine().Split(' '); sales += price[input[0]] * int.Parse(input[1]); } Console.WriteLine(sales); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (int A = 0; A < 4; A++) { cin >> a >> b; if (a == 1) cout << 6000 * b << endl; if (a == 2) cout << 4000 * b << endl; if (a == 3) cout << 3000 * b << endl; else 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; for(int i =0;i<4;i++){ cin >> a>>b; if (a == 1) { c = 6000*b; cout << c<<endl; } else if (a == 2) { c = 4000*b; cout <<c<<endl; } else if (a ==3) { c = 3000*b; cout <<c<<endl; } else if (a ==4) { c = 2000*b; cout <<c<<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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int s = 0; for (int a = 0; a < 4; a++) { int c, d; cin >> c >> d; switch (c) { case 1: s += d * 6000; break; case 2: s += d * 4000; break; case 3: s += d * 3000; break; default: s += d * 2000; } } cout << s << 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
package pasokonkousien; public class Toi22103 { int[] seki = {3,1,4,2}; int[] maisu = {10,4,1,5}; int[] kingaku = new int [5]; int n; int oseki; public void keisan(){ for(n=0;n<4;n++){ oseki =seki[n]; switch(oseki){ case 1: kingaku[n] = 6000 * maisu[n]; break; case 2: kingaku[n] = 4000 * maisu[n]; break; case 3: kingaku[n] = 3000 * maisu[n]; break; default : kingaku[n] = 2000 * maisu[n]; break; } System.out.println(kingaku[n]); } } /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Toi22103 toi = new Toi22103(); toi.keisan(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <iostream> using namespace std; int main(){ int a,b; for (int A=0;A<4;A++){ cin>>a>>b; if (a==1)cout<<6000*b<<endl; if (a==2)cout<<4000*b<<endl; if (a==3)cout<<1000*b<<endl; else 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include<stdio.h> int main(void) { int t[4],i,n[4],pokemon[4]; for(i=0;i<4;i++){ scanf("%d %d",&t[i],&n[i]); if(1==t){ pokemon[i]=6000*n;} else if(2==t){ pokemon[i]=4000*n;} else if(3==t){ pokemon[i]=3000*n;} else{ pokemon[i]=2000*n;} printf("%d\n",pokemon[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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> int main() { int i; int n; int prices[] = {6000, 4000, 3000, 2000}; unsigned long long int sums[4]; for (i = 0; i < 4; i++) { int ind; unsigned long long int times; scanf("%d %llu", &ind, &times); sums[ind - 1] = prices[ind - 1] * times; } for (i = 0; i < 4; i++) { printf("%llu\n", sums[i]); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int i, t, n, k; for (i = 0; i > 4; i++) { scanf("%d %d", &t, &n); if (t == 1) { k = 6000; } else { k = (6 - t) * 1000; } k *= n; printf("%d\n", k); } 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ int t=sc.nextInt(); int n=sc.nextInt(); int S=1; int A=2; int B=3; int C=4; int ans=0; if(n==S){ ans=6000*t; } else if(n==A){ ans=4000*t; }else if(n==B){ ans=3000*t; }else if(n==C){ ans=t*2000; } System.out.println(ans); } } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; &#160; class Main{ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;int tiket[]={0,6000,4000,3000,2000}; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;int t,n,uriage; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;public void solve(){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Scanner sc=new Scanner(System.in); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for(int i=1;i<=4;i++){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;t=sc.nextInt(); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n=sc.nextInt(); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;uriage=tiket[t]*n; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;System.out.println(uriage); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;} &#160;&#160;&#160;&#160;} &#160;&#160;&#160;&#160;public static void main(String[]args){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Main obj=new Main(); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;obj.solve(); &#160;&#160;&#160;&#160;} }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main2 { Scanner sc = new Scanner(System.in); int t,n,x; int sa[]=new int[4];{ for(x=0; x<=4 ;x++){ t = sc.nextInt(); n = sc.nextInt(); switch(t){ case 1: System.out.println(6000*n);break; case 2: System.out.println(4000*n);break; case 3: System.out.println(3000*n);break; case 4: System.out.println(2000*n);break; } } } /** * @param args */ public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Main2 sa = new Main2(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
package ; import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); public void nyuryoku(){ int t; int n; int x; int ha[] = new int[4];{ for(x=1;x>4;x++){ t = sc.nextInt(); n = sc.nextInt(); switch(t) { case 1: System.out.println(6000 * n);break; case 2: System.out.println(4000 * n);break; case 3: System.out.println(3000 * n);break; case 4: System.out.println(2000 * n);break; } } } } public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Main2 ha = new Main2(); ha.nyuryoku(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO θ‡ͺε‹•η”Ÿζˆγ•γ‚ŒγŸγƒ‘γ‚½γƒƒγƒ‰γƒ»γ‚Ήγ‚Ώγƒ– Scanner sc = new Scanner(System.in); int a,b,c; c = 1; do{ a = sc.nextInt(); b = sc.nextInt(); System.out.println(a - b); c++; }while(c > 7); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
java
public class Main { int []t = {3,1,4,2}; int []n = {10,4,1,5}; int[] gokei= new int[4]; int kusa; int ee; int ww; public void me(){ for(kusa=0;kusa<4;kusa++){ ee = t[kusa]; switch(ee){ case 1: gokei[kusa] = n[kusa]* 6000; break; case 2: gokei[kusa] = n[kusa] *4000; break; case 3: gokei[kusa] = n[kusa] *3000; break; case 4: gokei[kusa] = n[kusa]* 2000; break; } } } public void hyouji(){ for(ww=0;ww<4;ww++){ System.out.println(gokei[ww]); } } /** * @param args */ public static void main(String[] args) { Main A = new Main(); A.me(); A.hyouji(); } }
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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include <bits/stdc++.h> using namespace std; int main() { int N, sum; vector<int> x, y, b, p; cin >> N; for (int i = 0; i < N; i++) { int X, Y, B, P; cin >> X >> Y >> B >> P; x.push_back(X); y.push_back(Y); b.push_back(B); p.push_back(P); } for (int i = 0; i < N; i++) { sum = (x[i] * b[i]) + (y[i] * p[i]); if (b[i] >= 5 && p[i] >= 2) cout << (sum * 0.8) << endl; else if (b[i] < 5 && p[i] < 2) if (((((5 - b[i]) * x[i]) + ((2 - p[i]) * y[i]) + sum) * 0.8) < sum) cout << ((((5 - b[i]) * x[i]) + ((2 - p[i]) * y[i]) + sum) * 0.8) << endl; else cout << sum << endl; else if (b[i] < 5 && ((((5 - b[i]) * x[i]) + sum) * 0.8) < sum) cout << ((((5 - b[i]) * x[i]) + sum) * 0.8) << endl; else if (p[i] < 2 && ((((2 - p[i]) * y[i]) + sum) * 0.8) < sum) cout << ((((2 - p[i]) * y[i]) + sum) * 0.8) << endl; else 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int price[] = {6, 4, 3, 2}; int i; int sum_price = 0; for (i = 0; i < 4; i++) { int t, n; scanf("%d %d", &t, &n); sum_price += price[t - 1] * n * 1000; } printf("%d\n", sum_price); 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
#include<iostream> using namespace std; int main(){ int tick, n; int temp[5] = {0, 6000, 4000, 3000, 2000} for(int i=0;i<4;i++){ cin >> tick >> n; cout << temp[tick] * 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
cpp
1 1 2 0 3 1 4 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 the launch, I received a table summarizing the orders up to that point. Each row of the table shows the type and number of tickets sold so far. However, the ticket types do not always appear in the order of S, A, B, C. Create a program to find the sales amount for each row in this table. input Input data is given in the following format. t1 n1 t2 n2 t3 n3 t4 n4 The input consists of 4 lines. Line i is given the integer ti (1 ≀ ti ≀ 4) for the ticket type and the integer ni (0 ≀ ni ≀ 10000) for the number of tickets. The integers 1, 2, 3, and 4 representing the ticket types represent S seats, A seats, B seats, and C seats, respectively. Numbers from 1 to 4 always appear once as values ​​for t1, t2, t3, and t4, but they are not always given in the order of 1, 2, 3, 4. output Output the sales amount for each line. Example Input 3 10 1 4 4 1 2 5 Output 30000 24000 2000 20000
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
IN-CORRECT
UNKNOWN
#include <bits/stdc++.h> int main(void) { int a[4], b[4], c[4], d; for (d = 1; d <= 4; d++) { scanf("%d %d", &a[d], &b[d]); if (a[d] == 1) { a[d] = 6000; } else if (a[d] == 2) { a[d] = 4000; } else if (a[d] == 3) { a[d] = 3000; } else if (a[d] == 4) { a[d] = 2000; } c[d] = a[d] * b[d]; printf("%d", c[d]); } return 0; }