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:
parent
358d5a5738
commit
55a39515b5
16
AtCoder/ABC241/A/A.cpp
Normal file
16
AtCoder/ABC241/A/A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user