0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 16:31:58 +00:00
OI-codes/AtCoder/ABC241/A/A.cpp

17 lines
252 B
C++
Raw Normal View History

#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;
}