fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin >> t;
  7. while(t--){
  8. string s;
  9. cin >> s;
  10. cout << *min_element(s.begin(),s.end()) << endl;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5288KB
stdin
5
6
96
78
122
696
stdout
6
6
7
1
6