Precreation contest files

This commit is contained in:
2026-02-11 11:28:23 +07:00
parent 0a8ea477bb
commit cb9f7cab30
134 changed files with 1848 additions and 0 deletions

View File

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