Submission #66974938
Source Code Expand
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#ifdef TOWRIST
#define debug(...) cout << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__);
#else
#define debug(...);
#endif
template <typename T> std::ostream &operator<<(std::ostream &stream, const vector<T> &vec) {for (size_t i = 0; i < vec.size(); i++) { stream << vec[i]; if (i != vec.size() - 1) stream << ' '; }; return stream; } template <typename T> std::istream &operator>>(std::istream &stream, vector<T> &vec) {for (T &x : vec) stream >> x; return stream; } template <typename T, typename U> std::ostream &operator<<(std::ostream &stream, const pair<T, U> &pr) {stream << pr.first << ' ' << pr.second; return stream; } template <typename T, typename U> std::istream &operator>>(std::istream &stream, pair<T, U> &pr) {stream >> pr.first >> pr.second; return stream; } template <typename A, typename B> string to_string(pair<A, B> p); template <typename A, typename B, typename C> string to_string(tuple<A, B, C> p); template <typename A, typename B, typename C, typename D> string to_string(tuple<A, B, C, D> p); string to_string(const string &s) { return '"' + s + '"'; } string to_string(char c) {string s; s += c; return s; } string to_string(const char *s) { return to_string((string)s); } string to_string(bool b) { return (b ? "1" : "0"); } string to_string(vector<bool> v) {bool first = true; string res = "{"; for (int i = 0; i < static_cast<int>(v.size()); i++) {if (!first) {res += ", "; } first = false; res += to_string(v[i]); } res += "}"; return res; } template <size_t N> string to_string(bitset<N> v) {string res = ""; for (size_t i = 0; i < N; i++) {res += static_cast<char>('0' + v[i]); } return res; } template <typename A> string to_string(A v) {bool first = true; string res = "{"; for (const auto &x : v) {if (!first) {res += ", "; } first = false; res += to_string(x); } res += "}"; return res; } template <typename A, typename B> string to_string(pair<A, B> p) { return "(" + to_string(p.first) + ", " + to_string(p.second) + ")"; } template <typename A, typename B, typename C> string to_string(tuple<A, B, C> p) { return "(" + to_string(get<0>(p)) + ", " + to_string(get<1>(p)) + ", " + to_string(get<2>(p)) + ")"; } template <typename A, typename B, typename C, typename D> string to_string(tuple<A, B, C, D> p) { return "(" + to_string(get<0>(p)) + ", " + to_string(get<1>(p)) + ", " + to_string(get<2>(p)) + ", " + to_string(get<3>(p)) + ")"; } void debug_out() { cout << endl; } template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) {cout << " " << to_string(H); debug_out(T...); }
#define int long long
#define all(x) x.begin(), x.end()
#define double long double
#define endl '\n'
#define ff first
#define ss second
#define v vector
#define pb push_back
#define bit(num, i) (num & (1ll << i))
using pii = pair<int, int>;
const bool multipleTestCases = false;
void solve()
{
string s; cin >> s;
int l; cin >> l;
cout << (s.size() >= l ? "Yes" : "No") << endl;
}
signed main()
{
cin.tie(nullptr)->sync_with_stdio(false);
int t = 1;
multipleTestCases and cin >> t;
for (int i = 1; i <= t; i++)
{
// cout << "Case #" << i << ": ";
solve();
}
}
Submission Info
Submission Time
2025-06-21 22:26:27+0900
Task
A - Required Length
User
pasricha_dhruv
Language
C++ 17 (gcc 12.2)
Score
100
Code Size
3512 Byte
Status
AC
Exec Time
1 ms
Memory
3596 KiB
Compile Error
Main.cpp: In function ‘void solve()’:
Main.cpp:34:23: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘long long int’ [-Wsign-compare]
34 | cout << (s.size() >= l ? "Yes" : "No") << endl;
| ~~~~~~~~~^~~~
Judge Result
Set Name
Sample
All
Score / Max Score
0 / 0
100 / 100
Status
Set Name
Test Cases
Sample
example_00.txt, example_01.txt, example_02.txt
All
example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt
Case Name
Status
Exec Time
Memory
example_00.txt
AC
1 ms
3468 KiB
example_01.txt
AC
1 ms
3392 KiB
example_02.txt
AC
1 ms
3392 KiB
hand_00.txt
AC
1 ms
3444 KiB
hand_01.txt
AC
1 ms
3420 KiB
hand_02.txt
AC
1 ms
3512 KiB
hand_03.txt
AC
1 ms
3444 KiB
hand_04.txt
AC
1 ms
3524 KiB
hand_05.txt
AC
1 ms
3464 KiB
hand_06.txt
AC
1 ms
3416 KiB
random_00.txt
AC
1 ms
3392 KiB
random_01.txt
AC
1 ms
3316 KiB
random_02.txt
AC
1 ms
3392 KiB
random_03.txt
AC
1 ms
3448 KiB
random_04.txt
AC
1 ms
3452 KiB
random_05.txt
AC
1 ms
3412 KiB
random_06.txt
AC
1 ms
3452 KiB
random_07.txt
AC
1 ms
3388 KiB
random_08.txt
AC
1 ms
3280 KiB
random_09.txt
AC
1 ms
3596 KiB