Search is not available for this dataset
name
stringlengths
2
88
description
stringlengths
31
8.62k
public_tests
dict
private_tests
dict
solution_type
stringclasses
2 values
programming_language
stringclasses
5 values
solution
stringlengths
1
983k
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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]...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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: r...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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){...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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){ ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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[]...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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: ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 = C...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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 ...
{ "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 ...
{ "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 ...
{ "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); ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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(...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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); brea...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 *...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 < ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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: s...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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; }...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 (...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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<...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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){ prin...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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) { ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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.printl...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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)); ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 = ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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); } ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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; } ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 }, ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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: ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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 ...
{ "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 voi...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 * pri...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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[]...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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; br...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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: ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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); } el...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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; } hit...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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:...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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) p...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 }, ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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; defa...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 * ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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++) {...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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;Sc...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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.print...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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; ...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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]...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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...
p00272 Ticket Sales
Today is the ticket release date for Aizu Entertainment's recommended idol group "Akabeko & Koboushi". There are four types of tickets: S seat 6000 yen A seat 4000 yen B seat 3000 yen C seat 2000 yen You, the sales manager, are excitedly waiting for the launch. Finally on sale. It's selling very well! Shortly after ...
{ "input": [ "3 10\n1 4\n4 1\n2 5" ], "output": [ "30000\n24000\n2000\n20000" ] }
{ "input": [], "output": [] }
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 ...
{ "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 ...
{ "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 ...
{ "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; } ...