Submission #640622
Source Code Expand
#include<bits/stdc++.h> using namespace std; //#define int long long typedef pair<int,int>pint; typedef vector<int>vint; typedef vector<pint>vpint; #define pb push_back #define mp make_pair #define fi first #define se second #define all(v) (v).begin(),(v).end() #define rep(i,n) for(int i=0;i<(n);i++) #define reps(i,f,n) for(int i=(f);i<(n);i++) #define each(it,v) for(__typeof((v).begin()) it=(v).begin();it!=(v).end();it++) template<class T,class U>void chmin(T &t,U f){if(t>f)t=f;} template<class T,class U>void chmax(T &t,U f){if(t<f)t=f;} int a[100]={100000,50000,30000,20000,10000}; int ans[100]; signed main(){ int n;cin>>n; rep(i,n){ int m;cin>>m;ans[--m]=a[i]; } rep(i,n)cout<<ans[i]<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - DISCO presents ディスカバリーチャンネルプログラミングコンテスト 2016 Ⅱ |
User | latte0119 |
Language | C++ (GCC 4.9.2) |
Score | 30 |
Code Size | 773 Byte |
Status | AC |
Exec Time | 27 ms |
Memory | 928 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 30 / 30 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_01.txt, example_02.txt, example_03.txt |
All | example_01.txt, example_02.txt, example_03.txt, hand_01.txt, hand_02.txt, rand_01.txt, rand_02.txt, rand_03.txt, rand_04.txt, rand_05.txt, rand_06.txt, rand_07.txt, rand_08.txt, rand_09.txt, rand_10.txt, rand_11.txt, rand_12.txt, rand_13.txt, rand_14.txt, rand_15.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_01.txt | AC | 25 ms | 800 KB |
example_02.txt | AC | 25 ms | 796 KB |
example_03.txt | AC | 25 ms | 928 KB |
hand_01.txt | AC | 26 ms | 924 KB |
hand_02.txt | AC | 27 ms | 676 KB |
rand_01.txt | AC | 27 ms | 808 KB |
rand_02.txt | AC | 26 ms | 804 KB |
rand_03.txt | AC | 26 ms | 804 KB |
rand_04.txt | AC | 26 ms | 800 KB |
rand_05.txt | AC | 26 ms | 796 KB |
rand_06.txt | AC | 27 ms | 924 KB |
rand_07.txt | AC | 26 ms | 792 KB |
rand_08.txt | AC | 26 ms | 792 KB |
rand_09.txt | AC | 24 ms | 796 KB |
rand_10.txt | AC | 25 ms | 916 KB |
rand_11.txt | AC | 23 ms | 924 KB |
rand_12.txt | AC | 24 ms | 796 KB |
rand_13.txt | AC | 25 ms | 800 KB |
rand_14.txt | AC | 24 ms | 916 KB |
rand_15.txt | AC | 25 ms | 924 KB |