QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#271473 | #7879. Colorful Balloons | ucup-team896# | AC ✓ | 64ms | 12524kb | C++23 | 7.4kb | 2023-12-02 13:01:48 | 2023-12-02 13:01:53 |
Judging History
answer
/*
* @Author: cmk666
* @Created time: 2023-12-02 13:00:13
* @Last Modified time: 2023-12-02 13:01:30
*/
#pragma GCC optimize("Ofast", "unroll-loops")
#include<bits/stdc++.h>
#ifdef LOCAL
#include"debug.h"
#else
#define D(...) ((void)0)
#endif
using namespace std; using ll = long long;
#define For(i, j, k) for ( int i = (j) ; i <= (k) ; i++ )
#define Fol(i, j, k) for ( int i = (j) ; i >= (k) ; i-- )
namespace FastIO
{
// ------------------------------
// #define IN_HAS_NEG
// #define OUT_HAS_NEG
// #define CHK_EOF
// #define DISABLE_MMAP
// ------------------------------
#if __cplusplus < 201400
#error Please use C++14 or higher.
#endif
#if __cplusplus > 201700
#define INLINE_V inline
#else
#define INLINE_V
#endif
#if ( defined(LOCAL) || defined(_WIN32) ) && !defined(DISABLE_MMAP)
#define DISABLE_MMAP
#endif
#ifndef DISABLE_MMAP
#include<sys/mman.h>
#endif
#ifdef LOCAL
inline char gc() { return getchar(); }
inline void pc(char c) { putchar(c); }
#else
#ifdef DISABLE_MMAP
INLINE_V constexpr int _READ_SIZE = 1 << 18;
INLINE_V static char _read_buffer[_READ_SIZE], *_read_ptr = nullptr, *_read_ptr_end = nullptr;
inline char gc()
{
if ( __builtin_expect(_read_ptr == _read_ptr_end, false) )
{
_read_ptr = _read_buffer;
_read_ptr_end = _read_buffer + fread(_read_buffer, 1, _READ_SIZE, stdin);
#ifdef CHK_EOF
if ( __builtin_expect(_read_ptr == _read_ptr_end, false) ) return EOF;
#endif
}
return *_read_ptr++;
}
#else
INLINE_V static const char *_read_ptr = (const char *)mmap(nullptr, INT_MAX, 1, 2, 0, 0);
inline char gc() { return *_read_ptr++; }
#endif
INLINE_V constexpr int _WRITE_SIZE = 1 << 18;
INLINE_V static char _write_buffer[_WRITE_SIZE], *_write_ptr = _write_buffer;
inline void pc(char c)
{
*_write_ptr++ = c;
if ( __builtin_expect(_write_buffer + _WRITE_SIZE == _write_ptr, false) )
{
fwrite(_write_buffer, 1, _write_ptr - _write_buffer, stdout);
_write_ptr = _write_buffer;
}
}
INLINE_V struct _auto_flush
{
inline ~_auto_flush() { fwrite(_write_buffer, 1, _write_ptr - _write_buffer, stdout); }
} _auto_flush;
#endif
#ifdef CHK_EOF
inline constexpr bool _isdigit(char c) { return ( c & 16 ) && c != EOF; }
inline constexpr bool _isgraph(char c) { return c > 32 && c != EOF; }
#else
inline constexpr bool _isdigit(char c) { return c & 16; }
inline constexpr bool _isgraph(char c) { return c > 32; }
#endif
template < class T >
INLINE_V constexpr bool _is_integer = numeric_limits < T >::is_integer;
template < class T >
INLINE_V constexpr bool _is_signed = numeric_limits < T >::is_signed;
template < class T >
INLINE_V constexpr bool _is_unsigned = _is_integer < T > && !_is_signed < T >;
template <> INLINE_V constexpr bool _is_integer < __int128 > = true;
template <> INLINE_V constexpr bool _is_integer < __uint128_t > = true;
template <> INLINE_V constexpr bool _is_signed < __int128 > = true;
template <> INLINE_V constexpr bool _is_unsigned < __uint128_t > = true;
#undef INLINE_V
inline void read(char &c) { do c = gc(); while ( !_isgraph(c) ); }
inline void read_cstr(char *s)
{
char c = gc(); while ( !_isgraph(c) ) c = gc();
while ( _isgraph(c) ) *s++ = c, c = gc();
*s = 0;
}
inline void read(string &s)
{
char c = gc(); s.clear(); while ( !_isgraph(c) ) c = gc();
while ( _isgraph(c) ) s.push_back(c), c = gc();
}
#ifdef IN_HAS_NEG
template < class T, enable_if_t < _is_signed < T >, int > = 0 >
inline void read(T &x)
{
char c = gc(); bool f = true; x = 0;
while ( !_isdigit(c) ) { if ( c == 45 ) f = false; c = gc(); }
if ( f ) while ( _isdigit(c) ) x = x * 10 + ( c & 15 ), c = gc();
else while ( _isdigit(c) ) x = x * 10 - ( c & 15 ), c = gc();
}
template < class T, enable_if_t < _is_unsigned < T >, int > = 0 >
#else
template < class T, enable_if_t < _is_integer < T >, int > = 0 >
#endif
inline void read(T &x)
{
char c = gc(); while ( !_isdigit(c) ) c = gc();
x = 0; while ( _isdigit(c) ) x = x * 10 + ( c & 15 ), c = gc();
}
inline void write(char c) { pc(c); }
inline void write_cstr(const char *s) { while ( *s ) pc(*s++); }
inline void write(const string &s) { for ( char c : s ) pc(c); }
#ifdef OUT_HAS_NEG
template < class T, enable_if_t < _is_signed < T >, int > = 0 >
inline void write(T x)
{
char buffer[numeric_limits < T >::digits10 + 1]; int digits = 0;
if ( x >= 0 ) do buffer[digits++] = ( x % 10 ) | 48, x /= 10; while ( x );
else { pc(45); do buffer[digits++] = -( x % 10 ) | 48, x /= 10; while ( x ); }
while ( digits ) pc(buffer[--digits]);
}
template < class T, enable_if_t < _is_unsigned < T >, int > = 0 >
#else
template < class T, enable_if_t < _is_integer < T >, int > = 0 >
#endif
inline void write(T x)
{
char buffer[numeric_limits < T >::digits10 + 1]; int digits = 0;
do buffer[digits++] = ( x % 10 ) | 48, x /= 10; while ( x );
while ( digits ) pc(buffer[--digits]);
}
template < int N > struct _tuple_io_helper
{
template < class ...T >
static inline void _read(tuple < T... > &x)
{ _tuple_io_helper < N - 1 >::_read(x), read(get < N - 1 > (x)); }
template < class ...T >
static inline void _write(const tuple < T... > &x)
{ _tuple_io_helper < N - 1 >::_write(x), pc(32), write(get < N - 1 > (x)); }
};
template <> struct _tuple_io_helper < 1 >
{
template < class ...T >
static inline void _read(tuple < T... > &x) { read(get < 0 > (x)); }
template < class ...T >
static inline void _write(const tuple < T... > &x) { write(get < 0 > (x)); }
};
template < class ...T >
inline void read(tuple < T... > &x) { _tuple_io_helper < sizeof...(T) >::_read(x); }
template < class ...T >
inline void write(const tuple < T... > &x) { _tuple_io_helper < sizeof...(T) >::_write(x); }
template < class T1, class T2 >
inline void read(pair < T1, T2 > &x) { read(x.first), read(x.second); }
template < class T1, class T2 >
inline void write(const pair < T1, T2 > &x) { write(x.first), pc(32), write(x.second); }
template < class T1, class ...T2 >
inline void read(T1 &x, T2 &...y) { read(x), read(y...); }
template < class ...T >
inline void read_cstr(char *x, T *...y) { read_cstr(x), read_cstr(y...); }
template < class T1, class ...T2 >
inline void write(const T1 &x, const T2 &...y) { write(x), write(y...); }
template < class ...T >
inline void write_cstr(const char *x, const T *...y) { write_cstr(x), write_cstr(y...); }
template < class T >
inline void print(const T &x) { write(x); }
inline void print_cstr(const char *x) { write_cstr(x); }
template < class T1, class ...T2 >
inline void print(const T1 &x, const T2 &...y) { print(x), pc(32), print(y...); }
template < class ...T >
inline void print_cstr(const char *x, const T *...y) { print_cstr(x), pc(32), print_cstr(y...); }
inline void println() { pc(10); }
inline void println_cstr() { pc(10); }
template < class ...T >
inline void println(const T &...x) { print(x...), pc(10); }
template < class ...T >
inline void println_cstr(const T *...x) { print_cstr(x...), pc(10); }
}
using namespace FastIO;
int n; string s[100009]; map < string, int > cnt;
int main()
{
read(n);
For(i, 1, n) read(s[i]), cnt[s[i]]++;
For(i, 1, n) if ( cnt[s[i]] > n / 2 ) return println(s[i]), 0;
return println("uh-oh"s), 0;
}
// 想上GM捏 想上GM捏 想上GM捏 想上GM捏 想上GM捏
// 伊娜可爱捏 伊娜贴贴捏
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 6556kb
input:
5 red green red red blue
output:
red
result:
ok "red"
Test #2:
score: 0
Accepted
time: 2ms
memory: 6524kb
input:
3 red blue yellow
output:
uh-oh
result:
ok "uh-oh"
Test #3:
score: 0
Accepted
time: 2ms
memory: 6496kb
input:
1 abc
output:
abc
result:
ok "abc"
Test #4:
score: 0
Accepted
time: 5ms
memory: 7664kb
input:
100000 vagsmrnnry vagsmrnnry bvaojtyvmn vagsmrnnry vagsmrnnry vvzrbrqrgb vagsmrnnry vvzrbrqrgb vagsmrnnry vagsmrnnry bvaojtyvmn vagsmrnnry vagsmrnnry vvzrbrqrgb vagsmrnnry bvaojtyvmn vagsmrnnry vagsmrnnry vagsmrnnry vvzrbrqrgb vagsmrnnry vvzrbrqrgb vagsmrnnry vagsmrnnry vagsmrnnry vagsmrnnry vagsmrn...
output:
vagsmrnnry
result:
ok "vagsmrnnry"
Test #5:
score: 0
Accepted
time: 8ms
memory: 7552kb
input:
100000 khccohwxsc aakazkvryg khccohwxsc aakazkvryg khccohwxsc khccohwxsc aakazkvryg aakazkvryg khccohwxsc djckwpxwyt khccohwxsc khccohwxsc djckwpxwyt khccohwxsc aakazkvryg djckwpxwyt djckwpxwyt djckwpxwyt aakazkvryg djckwpxwyt aakazkvryg aakazkvryg khccohwxsc aakazkvryg khccohwxsc aakazkvryg aakazkv...
output:
uh-oh
result:
ok "uh-oh"
Test #6:
score: 0
Accepted
time: 3ms
memory: 7652kb
input:
100000 zvdnbaaefc ygwmnasolc ygwmnasolc zvdnbaaefc ygwmnasolc ygwmnasolc ygwmnasolc zvdnbaaefc ygwmnasolc lrvdhogehr zvdnbaaefc lrvdhogehr zvdnbaaefc ygwmnasolc zvdnbaaefc lrvdhogehr ygwmnasolc lrvdhogehr lrvdhogehr ygwmnasolc zvdnbaaefc lrvdhogehr ygwmnasolc zvdnbaaefc lrvdhogehr ygwmnasolc zvdnbaa...
output:
uh-oh
result:
ok "uh-oh"
Test #7:
score: 0
Accepted
time: 4ms
memory: 7568kb
input:
100000 phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrhltc phgzqrh...
output:
phgzqrhltc
result:
ok "phgzqrhltc"
Test #8:
score: 0
Accepted
time: 2ms
memory: 7648kb
input:
100000 ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoelyvuh ahkoely...
output:
ahkoelyvuh
result:
ok "ahkoelyvuh"
Test #9:
score: 0
Accepted
time: 3ms
memory: 6920kb
input:
100000 o o o o zhtga o zhtga j zhtga j o zhtga o j zhtga zhtga o zhtga zhtga j o zhtga zhtga o o zhtga j j j j zhtga o o zhtga j o o o o j o o zhtga j o j o zhtga o o j o zhtga zhtga o o zhtga j o zhtga j zhtga zhtga o zhtga o o j o o o o j zhtga o zhtga zhtga j o o j o zhtga o zhtga zhtga o j o zht...
output:
o
result:
ok "o"
Test #10:
score: 0
Accepted
time: 7ms
memory: 7376kb
input:
100000 ofhyqmlxm ofhyqmlxm bjqjepbvf ofhyqmlxm ofhyqmlxm bjqjepbvf ofhyqmlxm bjqjepbvf ofhyqmlxm odzv ofhyqmlxm odzv ofhyqmlxm odzv odzv bjqjepbvf bjqjepbvf ofhyqmlxm ofhyqmlxm odzv ofhyqmlxm bjqjepbvf bjqjepbvf ofhyqmlxm bjqjepbvf ofhyqmlxm ofhyqmlxm ofhyqmlxm ofhyqmlxm ofhyqmlxm ofhyqmlxm odzv ofh...
output:
uh-oh
result:
ok "uh-oh"
Test #11:
score: 0
Accepted
time: 3ms
memory: 7292kb
input:
100000 yyojlg yyojlg ppontiloo zewczen ppontiloo ppontiloo zewczen zewczen yyojlg yyojlg yyojlg yyojlg yyojlg ppontiloo yyojlg zewczen ppontiloo ppontiloo ppontiloo ppontiloo yyojlg zewczen zewczen ppontiloo yyojlg ppontiloo ppontiloo ppontiloo ppontiloo ppontiloo yyojlg yyojlg yyojlg zewczen yyojlg...
output:
uh-oh
result:
ok "uh-oh"
Test #12:
score: 0
Accepted
time: 0ms
memory: 7116kb
input:
100000 hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi hmfgi...
output:
hmfgi
result:
ok "hmfgi"
Test #13:
score: 0
Accepted
time: 2ms
memory: 6696kb
input:
100000 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...
output:
a
result:
ok "a"
Test #14:
score: 0
Accepted
time: 2ms
memory: 7568kb
input:
100000 avxrabtazp guhogkqh xokfiolzw xokfiolzw guhogkqh avxrabtazp guhogkqh guhogkqh xokfiolzw xokfiolzw avxrabtazp xokfiolzw xokfiolzw xokfiolzw avxrabtazp xokfiolzw guhogkqh guhogkqh guhogkqh avxrabtazp guhogkqh guhogkqh xokfiolzw xokfiolzw guhogkqh xokfiolzw xokfiolzw guhogkqh xokfiolzw xokfiolzw...
output:
xokfiolzw
result:
ok "xokfiolzw"
Test #15:
score: 0
Accepted
time: 7ms
memory: 7640kb
input:
100000 bfmkgigain uldlsgwpyq uldlsgwpyq bfmkgigain uldlsgwpyq unpjxuczw bfmkgigain unpjxuczw bfmkgigain bfmkgigain uldlsgwpyq bfmkgigain bfmkgigain uldlsgwpyq unpjxuczw bfmkgigain unpjxuczw bfmkgigain unpjxuczw unpjxuczw bfmkgigain bfmkgigain unpjxuczw unpjxuczw unpjxuczw bfmkgigain bfmkgigain bfmkg...
output:
uh-oh
result:
ok "uh-oh"
Test #16:
score: 0
Accepted
time: 8ms
memory: 7628kb
input:
100000 kcaiebcxhl dqzbkpudon dqzbkpudon kcaiebcxhl kcaiebcxhl kcaiebcxhl kcaiebcxhl dqzbkpudon dqzbkpudon dqzbkpudon kcaiebcxhl dwwgjrgk dwwgjrgk dqzbkpudon dwwgjrgk dwwgjrgk dqzbkpudon dwwgjrgk dqzbkpudon dwwgjrgk dwwgjrgk dqzbkpudon kcaiebcxhl dwwgjrgk kcaiebcxhl dwwgjrgk kcaiebcxhl dqzbkpudon dqz...
output:
uh-oh
result:
ok "uh-oh"
Test #17:
score: 0
Accepted
time: 4ms
memory: 7504kb
input:
100000 ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebmtqvgdu ebm...
output:
ebmtqvgdu
result:
ok "ebmtqvgdu"
Test #18:
score: 0
Accepted
time: 0ms
memory: 7592kb
input:
100000 fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsadsqnv fljsads...
output:
fljsadsqnv
result:
ok "fljsadsqnv"
Test #19:
score: 0
Accepted
time: 4ms
memory: 7608kb
input:
100000 hlpemexhal ibyjoachka wbfyuksdgc jexrpugwpr hlpemexhal hlpemexhal hltfnoqmom hlpemexhal hlpemexhal hlpemexhal hlpemexhal hlpemexhal hlpemexhal hlpemexhal bzacohfnos xstwvlndbz hlpemexhal hqefhxgbfe hlpemexhal hlpemexhal iuagmmbvso fgrjujwxjl idbhqkinqz hlpemexhal hlpemexhal zqixdryvql xaevgvw...
output:
hlpemexhal
result:
ok "hlpemexhal"
Test #20:
score: 0
Accepted
time: 18ms
memory: 7604kb
input:
100000 urmcaivwjl ywgxywknvs urmcaivwjl pmnwkpluxb pfyallioxd urmcaivwjl urmcaivwjl urmcaivwjl szrzpokmpy urmcaivwjl otcreeksyo qzwxoawnew urmcaivwjl omiapwcaig urmcaivwjl urmcaivwjl urmcaivwjl rbbsfafjui vusiwnzqse zbmnpzfppo wtjltdoswf urmcaivwjl blhsomjtqr urmcaivwjl ytisfepovk urmcaivwjl urmcaiv...
output:
uh-oh
result:
ok "uh-oh"
Test #21:
score: 0
Accepted
time: 18ms
memory: 7668kb
input:
100000 zjnnxxbieu qvfzscuxth xtaetkfrjt wqlnqwgfyu lmukeolidp puibffubxr pbczwlwfih rcnfjfdzfp cmfyxrrmoh chcsqnhsgg lrgwiyfxvc qvfzscuxth hbmetncjqi zjnnxxbieu hcljpkfbzu fygaawozgw oqkfixnmqc puibffubxr quncvjbxvx rlykixoovc wqphjevpif dyddhixwsp chcsqnhsgg qsusthguqi mnhmkpgqoh rlykixoovc rcnfjfd...
output:
uh-oh
result:
ok "uh-oh"
Test #22:
score: 0
Accepted
time: 4ms
memory: 7632kb
input:
100000 aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqzhcc aearjqz...
output:
aearjqzhcc
result:
ok "aearjqzhcc"
Test #23:
score: 0
Accepted
time: 7ms
memory: 7164kb
input:
100000 pvhu pvhu pvhu pvhu gnccul pvhu oegng sis hluqgbhx pvhu jgrywdq yvadglpypw wpvjr pvhu kibnk pvhu nmfwi isoijugnui kvvjspvwj jhywcht pvhu pvhu suhspvi pvhu pvhu oe pvhu egrmvuib pvhu ognoo pvhu hluqgbhx pvhu pvhu wpvjr cm pvhu pvhu lllwmz semptzdiu pvhu pvhu ojsiat wshcjzkfwa oufywcyek pvhu pv...
output:
pvhu
result:
ok "pvhu"
Test #24:
score: 0
Accepted
time: 12ms
memory: 7260kb
input:
100000 grxevo gorl fwzzqtdn bjfkmw fwzzqtdn fwzzqtdn grxevo lzvuniolk yyvkntb fwzzqtdn fwzzqtdn hqu fwzzqtdn xfdmso sckhs fwzzqtdn t fwzzqtdn fwzzqtdn b fwzzqtdn digla fwzzqtdn fwzzqtdn ssju fwzzqtdn bs fwzzqtdn fwzzqtdn fwzzqtdn fwzzqtdn fwzzqtdn ydvtn fwzzqtdn fwzzqtdn fwzzqtdn ogswqszf fwzzqtdn f...
output:
uh-oh
result:
ok "uh-oh"
Test #25:
score: 0
Accepted
time: 11ms
memory: 7200kb
input:
100000 axp uhdxz pjm sfftm e bdzyt e ljfqqit ojkho je jhst ugfr qdhvkqaoe plzdpegtny ojkho cqmkribj kgbq zdfdutqy qdhvkqaoe kgbq he sr e e aowrhp fzcicagows avuegkb xddiuep fzcicagows sp ylnabk dzkrisnpj axp zdfdutqy jswcim dxneu vbjozjmnoq lbzfzpsvxy g gxfhzqhi rdetcphsq jhst omtitjkzk ndkj youekln...
output:
uh-oh
result:
ok "uh-oh"
Test #26:
score: 0
Accepted
time: 3ms
memory: 7372kb
input:
100000 aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlpht aaqlp...
output:
aaqlpht
result:
ok "aaqlpht"
Test #27:
score: 0
Accepted
time: 8ms
memory: 7528kb
input:
100000 bfaryvxrmp bfaryvxrmp bfaryvxrmp bfaryvxrmp tqynutptmt mvpjcdluj bfaryvxrmp nddxqsqo bfaryvxrmp xrjsaqhc snxervezvk bedsybtr bfaryvxrmp bfaryvxrmp mylaogdxe bfaryvxrmp dkdfogcq mvpjcdluj bfaryvxrmp bfaryvxrmp swaquinci bfaryvxrmp bfaryvxrmp bfaryvxrmp bfaryvxrmp bfaryvxrmp bfaryvxrmp bfaryvxr...
output:
bfaryvxrmp
result:
ok "bfaryvxrmp"
Test #28:
score: 0
Accepted
time: 12ms
memory: 7476kb
input:
100000 etepcpifz etepcpifz cmqgzoyg etepcpifz rhvbplao etepcpifz mgwsyyho etepcpifz etepcpifz nxwkehirl etepcpifz sahvpdzxf etepcpifz macduexm rnxtbyepp etepcpifz etepcpifz qovhffzbou etepcpifz etepcpifz etepcpifz etepcpifz etepcpifz nxwkehirl ueocrnyt wtuypvxx ihmhbmwz etepcpifz etepcpifz etepcpifz...
output:
uh-oh
result:
ok "uh-oh"
Test #29:
score: 0
Accepted
time: 12ms
memory: 7552kb
input:
100000 gorpkyngl emshkycsa jbpdcawtt smlnltqljf eyklgridja xwerlucg wourtelv ybaykqrxfk khngbcjcya wxgrfijqzg pgrnqvcvok vrapehupf pgrnqvcvok njwqgatsi fsqpmujqgh ajlpbner coifroekc gdmfqlfsk atungofq vghlmwabnj mbjahbzrs rijqvgzsp lssnfsar fvjgukxmmm xwerlucg dfahudjibt vzgbkdvgo yimuynzj dmyflfitp...
output:
uh-oh
result:
ok "uh-oh"
Test #30:
score: 0
Accepted
time: 4ms
memory: 7412kb
input:
100000 aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenylohp aenyl...
output:
aenylohp
result:
ok "aenylohp"
Test #31:
score: 0
Accepted
time: 17ms
memory: 10652kb
input:
100000 augioxcibo pymkahjdam pymkahjdam howemvtyic pymkahjdam pymkahjdam pymkahjdam zbbwhhlpnz pymkahjdam pymkahjdam pymkahjdam pymkahjdam jrxeekacvb iwqlqxlkis pymkahjdam qjkyuojbqe pymkahjdam pymkahjdam uhbdfeolly pymkahjdam zvazncbthl ecmsljghhv tksjvhqucz jrtdznenhs tigjquhyhg pymkahjdam gopvxtu...
output:
pymkahjdam
result:
ok "pymkahjdam"
Test #32:
score: 0
Accepted
time: 33ms
memory: 10696kb
input:
100000 jylmmprcnt onbyzpvbwl vletdfcmdy vletdfcmdy mwqhtutoeg vletdfcmdy zygpgcjzzt xksimscalq vletdfcmdy yfxhvteuxl vletdfcmdy vletdfcmdy vletdfcmdy vletdfcmdy vletdfcmdy vletdfcmdy vletdfcmdy paxpbrgjtn agsajnulds vsftehcuis intarikeal vletdfcmdy eyuzyibyrj rkkytbtaui vletdfcmdy vletdfcmdy nedpeyr...
output:
uh-oh
result:
ok "uh-oh"
Test #33:
score: 0
Accepted
time: 57ms
memory: 12524kb
input:
100000 wpvlcxcahg jgfvlqskoh zuzidleycf vvsksikike wwcommqgul ismbaqvual amcivcmdim yhnjbryntr wbyafmgork xyrsnpgbtp lyioyzgico oeetpunxin zjfbraxvfi vaujjvpvti ejcjfunmvg phoqksfkqe yrxeapezlr ejjafhpjxb sktivjtbyy yjwjxqqiez epvbaxoime aoffgfhdpq xkofuodyxw vspvhgflsz eqrvgywfls ozlpsootgi mdygjed...
output:
uh-oh
result:
ok "uh-oh"
Test #34:
score: 0
Accepted
time: 15ms
memory: 10316kb
input:
100000 zjwyoy zjwyoy yrydjeudkl zjwyoy eexx wblcnolw nhfsq ooggct verubhve zjwyoy zjwyoy zjwyoy vqkijei joxnqmg zjwyoy kzsiwnsic qghjjg zjwyoy zjwyoy zjwyoy zjwyoy zjwyoy zjwyoy zjwyoy xvfzagopzr zjwyoy zjwyoy zjwyoy cmzlb zjwyoy zjwyoy ctpoa zjwyoy zjwyoy dvcsxfqvb zjwyoy onkmdh zjwyoy bfsctb zjwyo...
output:
zjwyoy
result:
ok "zjwyoy"
Test #35:
score: 0
Accepted
time: 33ms
memory: 10540kb
input:
100000 yfpubkkvwe yfpubkkvwe wiwdbbjx yfpubkkvwe tekzdgpnv yfpubkkvwe yfpubkkvwe cbnd yfpubkkvwe yfpubkkvwe yfpubkkvwe htzxwkeecw ebqehbckk yfpubkkvwe yfpubkkvwe yfpubkkvwe vpsxtvurbc sqe yfpubkkvwe yfpubkkvwe yfpubkkvwe yfpubkkvwe yfpubkkvwe yfpubkkvwe pdysppb yfpubkkvwe yfpubkkvwe yfpubkkvwe dtpi ...
output:
uh-oh
result:
ok "uh-oh"
Test #36:
score: 0
Accepted
time: 64ms
memory: 12220kb
input:
100000 rtxgj enntqjowf knlknxsg wwuzwoov ojikuhbj voaaxoxdp zseoumdut dcmusi yhgrlm knyi avtjps nzq vdahhnb izjuyhr hfakpsn onmf qkogddnqk olqajpztqe ubezvvzonu arldkl cfptkwxh ojlgkh eeout vxnivuwk vtz kjynqczfr dobexwkv jezl xqvwybw ixnbdjij tcdqhw hh brlqf cfnluva kemvnncuul odrf ymcxnir kuevy my...
output:
uh-oh
result:
ok "uh-oh"
Test #37:
score: 0
Accepted
time: 22ms
memory: 10656kb
input:
100000 jqectqvznw jqectqvznw vysdeskfwh jqectqvznw czfbluvs jqectqvznw sllqynrwyf jqectqvznw szgavdqccl jqectqvznw vinjshhvmb kbfhkzgrbb ejruhugtf jqectqvznw fqllkdrm jqectqvznw dtajoktds mriaghtbpz jqectqvznw frjauddnp wrcepxmfbl jqectqvznw aisqmnihc aziphidhy pobkbfky sktdhmuv jqectqvznw jqectqvzn...
output:
jqectqvznw
result:
ok "jqectqvznw"
Test #38:
score: 0
Accepted
time: 36ms
memory: 10496kb
input:
100000 hwxtoajxk wkqcticyu rtcmqumq ducvhhsd ducvhhsd ducvhhsd quwcpuldwz czpjtzvh ducvhhsd ducvhhsd ducvhhsd kumlwriz ducvhhsd ojxblohgv evmrowztg cmlihmhbj obpsqulw ducvhhsd ducvhhsd ducvhhsd ducvhhsd ducvhhsd ducvhhsd ghiylaet ducvhhsd akvgsrxk ducvhhsd ducvhhsd tmbchmrgaa ducvhhsd siepuwxzu ducv...
output:
uh-oh
result:
ok "uh-oh"
Test #39:
score: 0
Accepted
time: 57ms
memory: 12400kb
input:
100000 vlifvcct rmjcqqbfy wnsubtzfl rfyjoceca cfivohuic ftifhhcg zxdbuahtf rsqioohk wsfxrjigiu unuapekm usanfpzor yumepfrou rceiuzckpd bbolgrmuix pcmnffhm pcnildfd liilgxmbl tkqbjewyl aaphuyeu hmpmskglq xwxjckumxw rnjkiaeec jnbegsrzm tswpyagv xifxjgicr ltpdtxygqj elirufhss rmkgejxa trvobipkjw gejbjp...
output:
uh-oh
result:
ok "uh-oh"
Test #40:
score: 0
Accepted
time: 5ms
memory: 7588kb
input:
99999 kfirruopgo bdrsdrzkam qzyspzxznm vwshbqvfye sghxwmxjco vwshbqvfye rvovwmqqjy upfnameteq vxhvikjnjz vwshbqvfye navdreagvq vwshbqvfye hkhvhiwjrx rrypvetihr auuosschcd nvjngcxuyf rvovwmqqjy vwshbqvfye vwshbqvfye vwshbqvfye vwshbqvfye oabfutrnln xidgxbadsi xjvknrbbkp vwshbqvfye vwshbqvfye hdohbjkx...
output:
vwshbqvfye
result:
ok "vwshbqvfye"
Test #41:
score: 0
Accepted
time: 10ms
memory: 7520kb
input:
99999 hekrewdnbi hekrewdnbi augxuqwhgv sqdebivtfu xfiiyoefrg wqdxsjsucy gcbvdmnlga eumqieoeuj hekrewdnbi hekrewdnbi hekrewdnbi hekrewdnbi vbjgemfmji fvminswxxn xfiiyoefrg hekrewdnbi fzsgjbejho hekrewdnbi hekrewdnbi rwxrzrpadq hekrewdnbi iodemcyjhx ywngmmrzly hekrewdnbi hekrewdnbi hekrewdnbi hekrewdn...
output:
uh-oh
result:
ok "uh-oh"
Test #42:
score: 0
Accepted
time: 16ms
memory: 7640kb
input:
99999 ivwthhidij sijrswvips jcgceggshd pncoxnlvrn qgqqkxxqvk effmiukbsw olyisvdsfp qjothjruvw snkfwmioyr nxmnwqkfnz uplxuguiet vgekiqutut vxztzitdfq lkvpnhsppu ybtkjnbdiq hlfwyrmnqf laxcdhyzif hhtoxlfjau tgdrwptxdb ljiwllfyic bzsfrxeqej nxmnwqkfnz pqbgzdprek fzdufzyqua oydgqnxmzn duqigdawrz hkfcvquu...
output:
uh-oh
result:
ok "uh-oh"
Test #43:
score: 0
Accepted
time: 0ms
memory: 7772kb
input:
99999 agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxwpp agcyipxw...
output:
agcyipxwpp
result:
ok "agcyipxwpp"
Test #44:
score: 0
Accepted
time: 7ms
memory: 7308kb
input:
99999 qdy qdy qdy qdy qdy qdy n qdy ajorhdfiy ycfhlaxa qdy qdy qdy jdgrzp qdy n ck qdy rkgpwzboc ww qdy qdy qdy qdy qdy obicxvzb qdy mgbsd qdy qdy qdy qdy flukn qdy qdy udtpx klsspahcsp e qdy qdy klsspahcsp c qdy sn qdy qdy qaifmjtjey udtpx obicxvzb nkluyiai qdy frqghagv qdy vvc vjofny yhr bvkyykev ...
output:
qdy
result:
ok "qdy"
Test #45:
score: 0
Accepted
time: 7ms
memory: 7032kb
input:
99999 qkp oove csin qkp cffz csin ojnofphnfd qkp qkp qkp vyeqzhixn qkp cffz ojnofphnfd abxiscao jsrss qslkwv qkp auxcuzjidx lfkhcww qkp qkp v uaktidk auxcuzjidx qkp fziabaqe qkp snbznuxbx qkp fbkv qkp auxcuzjidx bnjicyuah f xjbzpbx dlwmsjqr sbpctfzw qkp nojqyutge nxbfnuh qkp qzde xhmlq ev qkp jsrss ...
output:
uh-oh
result:
ok "uh-oh"
Test #46:
score: 0
Accepted
time: 14ms
memory: 7148kb
input:
99999 pnohq fwczleyku xpdm ruvfsg z xzq kzufreonza rkq sdsg mbsj w yxpdcya kskqrnyx jiglf sdsg se aliqiidkss yxpdcya lunluvqm fycf n iknmnqn ts ec rtfetsgils pnohq elszdqta tftnjr b e gdfp odaco vtrvmhygjp apxdyon iknmnqn ruvfsg ts yljq pxx iznqq gx qcv laz pz ruvfsg odaco osfomtg kxfwuk iex fwczley...
output:
uh-oh
result:
ok "uh-oh"
Test #47:
score: 0
Accepted
time: 3ms
memory: 7376kb
input:
99999 aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv aingv ...
output:
aingv
result:
ok "aingv"
Test #48:
score: 0
Accepted
time: 8ms
memory: 7508kb
input:
99999 erypvbaox fmplnezq erypvbaox erypvbaox ogwrmtsy mpsbgxzrdl vthapbbonu udrddzlv wqigfykk apvzgitcs erypvbaox erypvbaox erypvbaox erypvbaox ttbdotyzz pfddlrsz erypvbaox btlytqed nnliabekw erypvbaox erypvbaox criicthq erypvbaox erypvbaox erypvbaox wuvzlhsdm erypvbaox erypvbaox erypvbaox erypvbaox...
output:
erypvbaox
result:
ok "erypvbaox"
Test #49:
score: 0
Accepted
time: 14ms
memory: 7460kb
input:
99999 nzalezlq ghdfptpisl nzalezlq nzalezlq wnksxppls nzalezlq nzalezlq nmwlvymhth rjalnerif scvmjaaaz ccuhunly fgbsmecje nzalezlq nzalezlq lxfexhgkj nzalezlq nzalezlq ntlemkkisf nzalezlq nmwlvymhth nzalezlq xbvdtvcy scvmjaaaz rjmtmtrkvb ghdfptpisl nzalezlq zupjazoog daqsppav nzalezlq qundezkgj zewp...
output:
uh-oh
result:
ok "uh-oh"
Test #50:
score: 0
Accepted
time: 13ms
memory: 7612kb
input:
99999 igfqkggf uyspmhbneq vgrsvnxe qyvprfrth kfmjsvhezz ftveeenwg plxpavpo rceaysgay ttdqxdeg plxpavpo xfflauxlf zrmaljgui ccsxhupdq pkdkprkoj cumganey ikkbuakyku qivdtoimsh vibjcvgcdy vogowxgzj rmnqdefix owucboyml nlsvblxz urtcjxcl urtcjxcl yohyeewvtr ivhcyhig ctrbjctxiv lhlqynswsv xuiqoqyj qyvprfr...
output:
uh-oh
result:
ok "uh-oh"
Test #51:
score: 0
Accepted
time: 4ms
memory: 7372kb
input:
99999 ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympkte ajympk...
output:
ajympkte
result:
ok "ajympkte"
Extra Test:
score: 0
Extra Test Passed