fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int num;
  6. string s;
  7. for(int i=0; i<5; i++){
  8. cin >> num;
  9. s = to_string(num);
  10. }
  11. cout << s[5];
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
12
2
5
689
2
stdout
U