Precreation contest files
This commit is contained in:
BIN
Codeforces/CodeforcesRound1037(Div3)/AOnlyOneDigit/cpp.out
Executable file
BIN
Codeforces/CodeforcesRound1037(Div3)/AOnlyOneDigit/cpp.out
Executable file
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
5
|
||||
6
|
||||
96
|
||||
78
|
||||
122
|
||||
696
|
||||
@@ -0,0 +1,5 @@
|
||||
6
|
||||
6
|
||||
7
|
||||
1
|
||||
6
|
||||
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int t;
|
||||
cin >> t;
|
||||
while (t--) {
|
||||
int x;
|
||||
cin >> x;
|
||||
string xstr = to_string(x);
|
||||
|
||||
int res = 10;
|
||||
for (const char &i : xstr) {
|
||||
res = min(res, (int)(i - '0'));
|
||||
}
|
||||
cout << res << endl;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user