0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-28 13:51:59 +00:00

A - Digit Machine

https://atcoder.jp/contests/abc241/submissions/29662195
This commit is contained in:
Baoshuo Ren 2022-02-26 20:02:40 +08:00
parent 358d5a5738
commit 55a39515b5
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

16
AtCoder/ABC241/A/A.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int a[15];
int main() {
std::ios::sync_with_stdio(false);
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
cout << a[a[a[0]]] << endl;
return 0;
}