CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 05:43:24 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=b744d0bd23c1f7da2dd32c48c5514a01155f083e8cf35cfadddbbbd95016bb2ca%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%228-LBuXwuU5d5mZ1NtrYQO10p7c7orF3M%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d44785dd92b080-BLR
#include <iostream>#include <vector>#include <map>#include <string.h>#in - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <map>
- #include <string.h>
- #include <math.h>
- #include <set>
- #include <stack>
- #include <queue>
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long
- #define cy cout << "YES\n"
- #define cn cout << "NO\n"
- #define nl "\n"
- #define fi first
- #define se second
- #define MOD 1000000007
- #define all(v) v.begin(), v.end()
- #define rall(v) v.end(), v.begin()
- #define sz(s) s.size()
- #define f0r(j, n) for (ll i = j; i < n; i++)
- template <typename T = int>
- istream &operator>>(istream &in, vector<T> &v)
- {
- for (auto &x : v)
- in >> x;
- return in;
- }
- template <typename T = int>
- ostream &operator<<(ostream &out, const vector<T> &v)
- {
- for (const T &x : v)
- out << x << " ";
- return out;
- }
- void sherry()
- {
- ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- /*
- int gcd(ll a, ll b)
- {
- if (b == 0)
- return a;
- return (b, a % b);
- }
- */
- void solve()
- {
- int n, m;
- cin >> n >> m;
- string s;
- bool flag = 0;
- cin >> s;
- for (int i = 0; i < sz(s); i++)
- {
- if (s[i] - '0' < m and flag == 0)
- {
- cout << m;
- flag = 1;
- }
- cout << s[i];
- }
- if (flag == 0)
- cout << m;
- cout << nl;
- }
- int main()
- {
- sherry();
- int t = 1;
- cin >> t;
- while (t--)
- solve();
- return 0;
- }
- //
Tags:
insert digit
Advertisement
Add Comment
Please, Sign In to add comment
-
📌 Swapzone +37% glitch ⭐ 2
JavaScript | 1 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 10 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 19 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 8
JavaScript | 28 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ O
JavaScript | 37 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 9
JavaScript | 46 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ D
JavaScript | 55 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 57 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand