QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#51165#4666. Delete And Winsinbad#WA 17ms15848kbC++4.3kb2022-10-01 12:00:252022-10-01 12:00:28

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-10-01 12:00:28]
  • 评测
  • 测评结果:WA
  • 用时:17ms
  • 内存:15848kb
  • [2022-10-01 12:00:25]
  • 提交

answer

#define LOCAL
#define _USE_MATH_DEFINES
#include <array>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <vector>
#include <queue>
#include <stack>
#include <list>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <algorithm>
#include <complex>
#include <cmath>
#include <numeric>
#include <bitset>
#include <functional>
#include <random>
#include <ctime>

using namespace std;

template <typename A, typename B>
ostream& operator <<(ostream& out, const pair<A, B>& a) {
  out << "(" << a.first << "," << a.second << ")";
  return out;
}
template <typename T, size_t N>
ostream& operator <<(ostream& out, const array<T, N>& a) {
  out << "["; bool first = true;
  for (auto& v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "]";
  return out;
}
template <typename T>
ostream& operator <<(ostream& out, const vector<T>& a) {
  out << "["; bool first = true;
  for (auto v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "]";
  return out;
}
template <typename T, class Cmp>
ostream& operator <<(ostream& out, const set<T, Cmp>& a) {
  out << "{"; bool first = true;
  for (auto& v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "}";
  return out;
}
template <typename T, class Cmp>
ostream& operator <<(ostream& out, const multiset<T, Cmp>& a) {
  out << "{"; bool first = true;
  for (auto& v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "}";
  return out;
}
template <typename U, typename T, class Cmp>
ostream& operator <<(ostream& out, const map<U, T, Cmp>& a) {
  out << "{"; bool first = true;
  for (auto& p : a) { out << (first ? "" : ", "); out << p.first << ":" << p.second; first = 0;} out << "}";
  return out;
}
#ifdef LOCAL
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
#else
#define trace(...) 42
#endif
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
  cerr << name << ": " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << ": " << arg1 << " |";
  __f(comma + 1, args...);
}

template <class T> auto vect(const T& v, int n) { return vector<T>(n, v); }
template <class T, class... D> auto vect(const T& v, int n, D... m) {
  return vector<decltype(vect(v, m...))>(n, vect(v, m...));
}

using int64 = long long;
using int128 = __int128_t;
using ii = pair<int, int>;
#define SZ(x) (int)((x).size())
template <typename T> static constexpr T inf = numeric_limits<T>::max() / 2;
const int MOD = 1e9 + 7;
// const int MOD = 998244353;
mt19937_64 mrand(random_device{}());
int64 rnd(int64 x) { return mrand() % x; }
int lg2(int64 x) { return sizeof(int64) * 8 - 1 - __builtin_clzll(x); }
template <class T> void out(const vector<T>& a) { for (int i = 0; i < SZ(a); ++i) cout << a[i] << " \n"[i + 1 == SZ(a)]; }
template <class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
template <class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
template <class T> void dedup(vector<T>& v) { sort(v.begin(), v.end()); v.erase(unique(v.begin(), v.end()), v.end()); }
void add_mod(int& x, int y) { x += y; if (x >= MOD) x -= MOD; }
void sub_mod(int& x, int y) { x += MOD - y; if (x >= MOD) x -= MOD; }

struct fast_ios {
  fast_ios() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(10);
  };
} fast_ios_;

int main() {
  string s, t;
  cin >> s >> t;
  int n = SZ(s), m = SZ(t);

  vector<int> last(26, -1);
  vector<vector<int>> nxt(n, vector<int>(26));
  for (int i = n - 1; i >= 0; --i) {
    int x = s[i] - 'a';
    last[x] = i;
    nxt[i] = last;
  }
  int ret = n;
  int sum = 0, pos = 0;
  for (int i = 0; i < m && pos < n; ++i) {
    int x = t[i] - 'a';
    for (int y = 0; y < x; ++y) {
      int k = nxt[pos][y];
      if (k != -1) {
        ckmin(ret, sum + (k - pos));
      }
    }
    int k = nxt[pos][x];
    if (k != -1) {
      sum += k - pos;
      if (i != m - 1) ckmin(ret, n - pos - 1 + sum);
      pos = k + 1;
    }
  }
  cout << ret << '\n';
  return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3564kb

input:

pqsrpspqz
pqrpqz

output:

2

result:

ok 1 number(s): "2"

Test #2:

score: 0
Accepted
time: 5ms
memory: 8108kb

input:

dbgaifphufyoiulauzhjxjzdthwmutqasyeptbzfmoarvvhvwiykeevdysxiktbpaverxfaepvhdzxudjfzpyqcmdmcbuuitvpmmgsojxdafsihpdzkooiveaugnvzqzcvgvedgpwwcdmbpiiqvjwmhsibyupaghqxshjqlrsbnnnwugbjyxabhvixqkzblduvviuhaseorvwdbhyoyhkzqvtehjlsuynzkwwjofehqcbypelelxmnzwdcbfwfiumbizqxyxbisokciiazerartyyoqjccmlkiexwxnzauep...

output:

0

result:

ok 1 number(s): "0"

Test #3:

score: 0
Accepted
time: 4ms
memory: 10296kb

input:

ypxfdrimydfnolhohthwdmrfvusanxncqdxkezjdwtmtheybpysnzehdvlnjyhemufmvsszieuqvwpahskgvnrpoilqhwfjglyfmijrfgjbjdzxtyenzbbxwgazzccvispjnamqjlwvyhsxlrswpblgooqslyjftorzcwuuaoteahfkvpyegdbzvbwgdgpjrqysjlvpwdxowrtwpuyjvumckbkcqyoeenqeaceeztrqsdzdcaymthkeastusjzllxrlxxtkqqzsllfnceuttlwestfqxnqesqfrvxydgeves...

output:

1

result:

ok 1 number(s): "1"

Test #4:

score: 0
Accepted
time: 9ms
memory: 13480kb

input:

prsmhkfxvssywgvrjsfpphacyuycajbgshqzxahpgoogwrsnmxmddfmwuvnaovehsltgziwopsfdbtecihmiloifpwhbqssuhpmsmkyexascnocrtcjioyrfuaswxrfbhywoubmzbudqquusfwraghnwrewqdoiplbschshpfrzdbetegonoulujoxgtfrvfsyjbkviregncozimrvnhsypgvlmdtdgbljaekvtabmbcdbmzdhjoobyczjeguaorvpoqsqopmlojcycrxtpoouxtggxncnahbwyavqctvvfl...

output:

0

result:

ok 1 number(s): "0"

Test #5:

score: 0
Accepted
time: 9ms
memory: 9324kb

input:

dwnkhsgvmfpjzpnlofendpvvepjwgmwfrzuflngcwmvchenozawonavjkarczvvuquxjwfjgfygstuuroqhaisghamuirsylvuhbyefawzunjdcouhcemhepnitjxpnvgqowyxlcxcfbivktfbqayajwglsnzuloshwyiylyukywnjrwvaxpnkgkmgsihekvolhwmxpkzuswbytpzeqnnkboslafcmxusqkylqroiuzthrzskhyiuwerevnsjpuejjszomemqettmfrhqfjuwlryyweallgblbaicrlxcstw...

output:

52

result:

ok 1 number(s): "52"

Test #6:

score: 0
Accepted
time: 0ms
memory: 8252kb

input:

taiwysfibzjgmalatsphlatassfkxtabvazuxiuvkcsnfudqzfflarlokugvxfxgrxgwcjcwrlhrenxhqrncqcqarouokcnpwxucrtyowoypqmfgexbpdqzwdwhgrixsgifbppkhafxqggsvyakrpotmoeqtgpuieodilewpphgicvfjbssjaawisvmecnkvsvxtplftlcgfaycosrudgjuzvbghjlywncwyzmlceijifevlmbtxfkvuimglzrhfxhywqscwunblxiftebdoyimdtzgblvixjysnnrzsfnpf...

output:

1

result:

ok 1 number(s): "1"

Test #7:

score: 0
Accepted
time: 4ms
memory: 11088kb

input:

eemsxvnwjeggaqmdxbvahxicfdawydtgmovvqrbpeuxhmgjlvihnjsplpwjrcvgbcxrwoolxdazbtvrbnvioozifdgloimangudrconywzwdlvnvapkxvtzmkacbipnvrfnlbxxufrphdvfgrlfnsskbodgdxjtltsyyowgewdbiebmacdquatxvkpuqxxfmxqlgdamxgkfvhcqaqvjkynkxzbtkxruejlaqcuuowbylmazucqnigpnpxczqavhaycwjuneyrktdqjsztjgooyjuwcxwdjrxsiaydjgdadph...

output:

0

result:

ok 1 number(s): "0"

Test #8:

score: 0
Accepted
time: 2ms
memory: 15396kb

input:

avwarmblnotielodndehnrpwmgoxmahbzuhvvtundkaotzxmvijyzhxtaodlnekztvayxxmoadhxqyxpmznuogkxolshgvrymjgaqiffntmojihciacvhqvkrwmdejkynuxxsiuzirlumbkwcfoimojaouxwbhpcvwydqvgveqgcnjgtwsdbvimctcpdcuostrjorezofcgbhcudxudslfcfmitaeedegepxxzisvsravfqavfhptbmzlujdwofbzgfrljrwkydpycmlrqswpcfztuwomivnwxrmtvgzhhik...

output:

0

result:

ok 1 number(s): "0"

Test #9:

score: 0
Accepted
time: 3ms
memory: 4076kb

input:

kjiwehfrgkmnttxzqceyeqsgrvvoufcpivgfibwdegrljefbxgzxoewwlslpwjnmrzhupkwysbfzasbgaqztlnedopxjgdmigqenkrwvwftnkoavkcehbipfqxsgwneikmljtrcejdavbdvclfqmwzlrgrmkaolzpwbvpvodfyutdskzmkavjwyzcwrfpenflgfivytlxvcbbjgqgxefijsjeyqqkstnaadbmheydzfsnhfmaptbevdafmoeqphwzfeexbrgnnunpabpjetzzcdziioevjvnoimajenrlkid...

output:

0

result:

ok 1 number(s): "0"

Test #10:

score: 0
Accepted
time: 1ms
memory: 12276kb

input:

nwvacbyianbkhajfbosjpgdgcrlzfhluvngrmtfxxbfpqtbrhkizdpzdieaalnkjixdfcnwmmilkmukezvvslawfugcsahmblmhddfsmsqcvflefibpmhsihxdhrhkwvpqqozgbywbpcwbegpqxgtsectdhaxjmustxpvmdrxpnzmepknvkgdjkupvkdinrgulbeudfvrytlrufjbmxfkcmqsefflzcnvmeycknaxtlhntwxydixjcvnaddzdboumxtlhwbuvxvpijysyhocgayizljndkhjsyvbcicfkzrj...

output:

0

result:

ok 1 number(s): "0"

Test #11:

score: 0
Accepted
time: 12ms
memory: 12676kb

input:

yupzghqaodpuvsnsxblbogvgzvavftuphnhqjijtcdzdcoaepxunqaaaakydbopgdevmstmhcnoxjyrwavkuwskiekpoaltlkefnqgkknbproiiwkkxdojwtfhaeevigbkyyddbrishugetrmcvhkfhxfhunidvhwruhlmiorzzupdecnwztnvdfsisryzuorkzyolhevkeeyszhapnohverszsihpeylchzduauxcmgfhpzgfjdplzoiztjnizkfnaeeoqjwiisrjzdctnpbttozdcmzbcxazkhfxiujnxv...

output:

2

result:

ok 1 number(s): "2"

Test #12:

score: 0
Accepted
time: 4ms
memory: 8532kb

input:

nfkymyadwbanetkgfjappdvnigxhmjvyolktpbsmqsskqmisryxqyezwnndyzpipolnnxbgvniktairhaegxstihguiuwawznfaepjmjpebaydskonvfoztxzitvwdkwvucydbxmksbkigpidgbnjpnqoowwshwvuuklubqmjyzrtuuougufinqvboovepksvwbrkavoauxphfysvsabucagfqjacvdzobigjwnejnyxkpycgsnamakuvigteimnhtlolzxqdhsroqskqtleyybaymkihmkrxkoidesysbss...

output:

0

result:

ok 1 number(s): "0"

Test #13:

score: 0
Accepted
time: 0ms
memory: 6820kb

input:

eemjzpjmbskgdfbetpwbdowqfbeucslhejsvjqyjplevtiuazrfcrjusyeuakxiewavdarfhovzmrwkmxkpcoqpaehnevesbmzuzcczexlhiyrglowyxjllnphkquhtdxemyiecpuukhwgvrlgeaeknwmtfuwmqyeebejxoqyzlzfyxqwsgkrugylwgbzwdpswsonxnovipfsnqaypdvlheickewpadzoplgoihhnezhicpulgcioluyuvoyvosjzrxdjkhoiltaveyeyuudldfeepcgfjaqmfoczgoftnsy...

output:

8

result:

ok 1 number(s): "8"

Test #14:

score: 0
Accepted
time: 10ms
memory: 10384kb

input:

fylyxatvgpgzwucvatzbxmsosznqirwrwgmavvhkgvexvmfdkjqnvdummdjzfivgyfktkycykgrursrkniruszlbuqtaabecapgjpooemrxolmmybyzktujpofotgdfgngdyxbtvgfyqddrnkagrpefwwjzotdqdjchhhizhqpddijwfiuctrgemggddtjtuanewgrofoxthvewqzrxlyexqbhxnkstukhmmjxnugjuqwbrgehojfxrpysmffmfqmbfdsgnzuqegjdkoqpaajpytpprtipmlwwzzugiklvkx...

output:

0

result:

ok 1 number(s): "0"

Test #15:

score: 0
Accepted
time: 2ms
memory: 9588kb

input:

chjdiwxbkhheyftmsvpwpasgdxjeaezjrvgzulsvtjdppfsdqeqbwqfumvyiqckyhmrvdrsfbsebsikicojnexcnkjdnabcuyxomsfklozvnneqvvecocvaokmhosozhbiywlnqkvtpjwpejgilseflfcpahzaafqzovqrbmqvhhqzrveyscsnkdgnmgoxarrvvzllieinbnhusabbemguaeimnaieavtnhtyahgkxarveowpvirtjlqrqodrilutfkincmqyrilfjjerocumfbhnpstgemxmyqqldtazlda...

output:

27

result:

ok 1 number(s): "27"

Test #16:

score: 0
Accepted
time: 0ms
memory: 14916kb

input:

lernfhclelygquvugbqsqeruujgdlcelovicfrwcjecfjstybzgkdkqselbzlfvevmhhoaihuzvynwmpvgxsuljfgarxgnzhjiwciohkmuljnjrchmmdfvfircmmcqknjxutmecyjbrclyzxeldjhgkxhahbftbhrrjaznmfhldhslqwvmascclwotdacnqvmqwwdgargadvpnywvuhjoymhrxfryzbstxnwxsiulcsjbnlqedzmitskxobtsoluromgbimvmgwveagsbwnhgwlagiukygovscnrvaoukiny...

output:

0

result:

ok 1 number(s): "0"

Test #17:

score: 0
Accepted
time: 0ms
memory: 3736kb

input:

fuhxgpnpetrlqruqnvywbpedbesuidqpynvndrmrksiykfijlicxxbwmiyykwrpsalpcspitsccuwggrnwsewxfbtbuhdtkvdamlebywprwmvlzyjnnhjpqdevtyycpikpcfqzbanzfmamyykbnrezromumjysbesjpnddhgamqfzkagxdbxhdqrzxchmwpycgrhcskrzyxtlsoadnkpvinkypukwohajglndxzzenewqejejxsrtjonjgohnmkkhwwpagxsgykkkszoigmcttcbusszuwqvpjjgomzprbgs...

output:

0

result:

ok 1 number(s): "0"

Test #18:

score: 0
Accepted
time: 6ms
memory: 11556kb

input:

twexopdmkgzgrtvlnrtrrvqhudnhmyzuvukqhwkqeyvkoopwwhuauqvrvwrclhiuvmkbkzroktevpozcplxlxaipbjfimrfgdnfeoejzwjcpdfotuwswxgllbdqrjxmndakjlgmfupocfajzxwdudeahxunzubelwczacarecdwivvfgnjqqapewbeemxcsjbqrmzeoeffntbhfxuxirtkyomeudbwlxfhkoprfittezelbvoehhlorncnytgiowysbttsnumoqmgrzjnliwlyafvohscwketpcnobsigvyh...

output:

1

result:

ok 1 number(s): "1"

Test #19:

score: 0
Accepted
time: 4ms
memory: 5680kb

input:

rdopcckjfrsctztajhwnllofpmvuvqdxohclrnglhpyrrspjnqfbvtudaifawcgzhldcheeoncpwudovguryduvrelejjeqnyynlmzvczfrntshjivohhdirepsivunpqptjepjsdgosuqprimakvemugulqmlfxvlchexwjcqimefrxjejejotqeekhaswxmcxefpmfsttrichvvenvcziqokhdzlbgnqdvpzwfyltfvhzzzbweuefmoapstmuxuwcdtzroetntaixdrrzvcpmdprhddrylpmfksffegraq...

output:

0

result:

ok 1 number(s): "0"

Test #20:

score: 0
Accepted
time: 0ms
memory: 12544kb

input:

qlxkhhookpfzdocaiqrsrnyfqqbyxksduvncfqqyeidpjzcxhekadpnqvkbvtccyyquypswirsvumckyxmlqcrlkuruqtzuhsyjnlnzxwixeydzcbvwvqhuwdqlxgcmitnaxbuaqlkxgnwxpfysgmsytfverptksfdyugynbsxxakyuuizvbvpocpkcsqqlwofbqinttheelhaufwieawbjsqdjblranjcpevpqwvrsufcsdldoziktezrvwltodavfbozrhlvggizefhkgsznlkqdzvwavsbiartljdsxjf...

output:

10

result:

ok 1 number(s): "10"

Test #21:

score: 0
Accepted
time: 9ms
memory: 13136kb

input:

qwilhgbizqsgiidczikomrdeaxkeoqwfzysdakjjwgjpwsngveyfsczpekrnaioclsxdxfnnnfleptezzkxnesatqmmwyjnrzanokegnxgfjtvnjsfifzjbshyrhycdilvndwtsesyxlvmtnhzlysfgfuioxjnuijsydqtzvorwqfjpdvvbadxjywmkhelqxpvrsuxqzfbgmvtjyazmpndxmcnqloaauopnvlybcliqexeonwczikywpwbazpxsirpnweffuwppvhyhluqlrthpjnwesbrnuvosmuacoqyrw...

output:

25

result:

ok 1 number(s): "25"

Test #22:

score: 0
Accepted
time: 4ms
memory: 8200kb

input:

zitjmmdkozuikkqgjhkeuvpftukgyblxksrhvvsbfroardghbqhuvihvjxaqmeldropymuoreaznlyqzdakielkcovhixbedyvbwvirsnxstjestroljlrnfgcqqgifonfydimekiymhhfdqqpvezdnwvctfivrjuwycdphrrgxzomtbqljpkjbnqirxznakndexpsaoqtizllrlpzcqbupzpzjhriqrkzpzmyggfpqxvrccivyohluqmbiqvjhjuomczamludynwlpnlzbgepedtfpsjhzeyedjyqklmqrk...

output:

1

result:

ok 1 number(s): "1"

Test #23:

score: 0
Accepted
time: 4ms
memory: 3964kb

input:

wrekifnafzaderenkiozevnkundiftaemamzqhuzvlggyowwvtdpeupzwofswavyquzjlkrhfxmfbtsukamdapfmfinpjftvcfveixpwfaubcrrqbepcqyxagwxgiykwyntgjpipzsqdmejbpkbdhwcnofxpqluuxptumrxyhwytvefrezwrrfllhezadhucgxfyfbjluzqnqzxfnziwhfrdkhphioleyhnjegusawjffdjztzwckcjsvdptxfjbfaifbncvyovueqbqnkjmnsxyzagdxvuxgtzeugktnjvt...

output:

9

result:

ok 1 number(s): "9"

Test #24:

score: 0
Accepted
time: 12ms
memory: 12016kb

input:

jasdfsbxdabmpsciszbzevshtbryojwtwpocbmcbiuijcivvnaithskkqjyfikdgiwtnssyovkmdukienkdiudtjouqatbpujyopvzrxsqpnnkujxunavvlequgyuqkdbqsebukfesqhvqqalwnhgzqlhiafieaxipegterzuqzlpnnbqzwdrrmhprjagjuyzspjacjunrxqzrkxjcpasctmdzvnlqxoztshswolotfcoovchsjlntnpuyxnasoahxngmzwaqhxdmgwqcjypawgzqypwuhllwidaktovolzs...

output:

1

result:

ok 1 number(s): "1"

Test #25:

score: 0
Accepted
time: 1ms
memory: 7396kb

input:

rtbuzdrrqermdipukrkkrkezrapjflfzhiwqyurrfexsaqzgqqklbbvljkczspqqnhtzwmelixsyhlyigzacrvqgviwxbiswmdmlhoskudffweyrivmcfwjuthzfmfhmvqmmmxvaoddnfnjhuwdsgyhxwotqwvenzpatynteawukyljhnmftktqpllfqqlawkzdgwtfuuggzymvuyfwppuumuknzrasbdmxprhkopvalrtkvtzmbzzfwxgnzkxilwhrsyzdoshsbjnuvkyljbmjajapuzcrjamlnvqrtxeuc...

output:

0

result:

ok 1 number(s): "0"

Test #26:

score: 0
Accepted
time: 7ms
memory: 14076kb

input:

itwelbhqwororjzstyxtmqtdvccovelcxksenflsnqxnznbikfsxwkprcmgqhfpfytlsqorsijxgtlwdlbehlwnjqmvjikhkvapecgkazffgqjvjxrkvrgelxnqxuffkqrajlbdgqgedmelxxrhhjgdmrurphldzkmthfqqnwtlpyztvuksjqprkdamczqimxfqbamvqwvltpnclseeogbpijgskoxflvzdyumwdhfsinddxeegrxfczaflomvmqndruzgqjtpblxcqyhireekrbyvorplhorlzzihyqjayc...

output:

0

result:

ok 1 number(s): "0"

Test #27:

score: 0
Accepted
time: 5ms
memory: 15848kb

input:

hybefislodltkilhaaayfrhicxwrnzcgjtcagilwjukxxztyobzqmrqfbkwiwrjoyrqlpqbfzxzufwcmdngwowamuhdameasetaprphhrlgivknwdwpkbzsvagwspyhvedrchbwrmgczlwyddjxyeqqpoowgqlyrhmzzxydbxlxvzqqtjxjtxtuswkyvhkuajloyrxtpimeppdbsrstamjmolkybsealsgyluaeczscuyrvwnbquveejasultnkgsjmnzbtmunipvtmfjzpohfyljmkulapigcpucdrtoluu...

output:

0

result:

ok 1 number(s): "0"

Test #28:

score: 0
Accepted
time: 17ms
memory: 14684kb

input:

ajffkzritrebcsmzxetvrxwfdolnjsjmvgrswdpzdxwjqgodtkdndndcemmttxtmtxoppxplmyjqwhuainihluliukpvegpxatswjrsdsmspwriykqhrklvmpmgfhnkznafxlassoqwtsytfcmasnxwmrgajskqrvjfpvssqebvzbugekavosuhxvncxbzkthgorqdsxxnfcdquskvatckicmfkarvhczlitpvjgynxhvyszpyazawfrgectanffjghwtjiqdohvinvdzfycayskatwswjemtkritjlwewjh...

output:

0

result:

ok 1 number(s): "0"

Test #29:

score: 0
Accepted
time: 1ms
memory: 12084kb

input:

sbdgvjpezlodulhkbupofawgglwpdndjdckzqmdhqxvvvouzeyhwkzpmsspyixbtblvsjrixqcdkffwygzwxjfvrwvcpehqqrtncikkzsgvuifkksfcmvlkdhumqiuzyyhhqsjmsasxaxtfcseuskllzxsplggogrxduleprotuvueggkgrhpdbelytwefadmzfldmvezitmndmtrfokyeqssjlyfwijktcrfcmttpilwagpujpniciuughglsfjdebocagpulqpffjyqfwzlcciuxxkshlkdmdwgvszowpa...

output:

1

result:

ok 1 number(s): "1"

Test #30:

score: 0
Accepted
time: 8ms
memory: 13684kb

input:

usbtyqtiqbvmpqoqvorlzifleakgedgfdrhjaubkhaankwqrjmptklmovcwnbedjvlbmrlepubzqmmnyabqeucapwaxrzhopfukxjbfeqqaogiysexwdiezfhtecryomllcgbbkiosjpxmsfzxjmevlpjthwpfxlxedhkmrivphzobzxwfpqhzbjtaomssphqbaauapbagdzbfftfrqcnmivdahprwxpldawpdfosjdkbueebovxbzpaoowjggqouojosnquvgcnxxxownpraqyecwcuaiifmtifrtzwrpyp...

output:

2

result:

ok 1 number(s): "2"

Test #31:

score: 0
Accepted
time: 5ms
memory: 13316kb

input:

ftytnmimmbiikqnvvzcmswamqjvevlzvwzvmwtprqdxdqqdmutnffzhrspfomhxkubfbobgdarfdhljtqqfstiydrcmgqnjkgejjjtgufrelucjhonwdakveddrtubpnhdexcouxqeynsgkifzmsywfhyjchrdocsxykxepthsnbbfolcmunxrlvgkibqbmpyuytwbokdiqclznbndveyfqmkjyblnjbyqxichfncdtoqdektpdqhibcsgevkmcegiohkfbazkddshtvuqtsydywmobvjfcewbwsdzvvbnts...

output:

0

result:

ok 1 number(s): "0"

Test #32:

score: 0
Accepted
time: 0ms
memory: 5024kb

input:

mlqoebrnadbfqrczgnzusffqhefqeifeeyvgiexbhmjxydgxblskskhmbnyrpkqzsrzitkaiqkjrqwicyoakknzqrlotfikastbdzqawvzrqwzcitgtyxmtwnjvjgmmwhaulfpmyhnzjzdalbyqlnitdglqbmnntvqxdjrstuupdsevvqfmhhgqvzfmzcwoxloefduropcfblmpwzeacceolvtogthfckwrldseilikzgykfvoowipdbfncesdsghfxtzaqyffulxjycfqcrpfgujgzuqayrzxvlecxphnvc...

output:

0

result:

ok 1 number(s): "0"

Test #33:

score: 0
Accepted
time: 2ms
memory: 5192kb

input:

nhyfhidusidywpjfvogngnwzdmdfazbbrbympmxldmynabkfhaapubiiohmjosrwxyfhyuvgvtscumbqvcqduuaypduawstmtcfbdqtbjqmpgnxtspthvlghfknudvtivqrkajoaeanamboscaggebvmwuxgdlkqjhyeecntdecxyhhwwmovswuywjfgfoejictzdpfijjvfojidykntzezhamgyxtyneaneobibmcwlrctpyjesneugwokzgirhysqicntpcpbgesmpgomsrsmrjhujxoghsrfsssvsngux...

output:

0

result:

ok 1 number(s): "0"

Test #34:

score: 0
Accepted
time: 4ms
memory: 12680kb

input:

zskxagpwjzojdbhgafthlzqtzvsurfcsquymkenmpbwbhmksiesdsyodnauylbwheubeoarrsuxzzlnwsxppiufgtbpyybfvxyltspesdumhxywqyuohubppqbnfpzjrruyfrwmpzvqjvwlodsxqnhadudtkisgcjekwbdbcslvpqgaskqxefxtukfacidrrhcgdilothyjlzfhvwvryuytkgxvaknpzfkvszuzjakhxfeidtctyhgwfyrpezrnxzwzwykcyhrwzwdeccxrpbttxvytmoivpjqzjwzcubnih...

output:

2

result:

ok 1 number(s): "2"

Test #35:

score: 0
Accepted
time: 5ms
memory: 12420kb

input:

tahusokxrujrbapbsulumbwcfjzzzziuzkaugtbcbnagcumjhxsaviyvyhqyaqeofyhmvudfrcrilucxtmxcfxvitcnuewzrklomacjtlnaaqgdggsvgyeaekjkafkhxctzdegcyzyhxfhofrnfjzftaptakncmcrzcmbwcfyxrfusamnodjnpxojfkrjqhjcmwklthpqxprurnuakjrqtnublaudoesgnjxadexgfvkprzqmsrvimzxvjgrbvzozzsfaojbgqehkvrokvbvwgcevqbyimfjuqtfxbkhayhd...

output:

1

result:

ok 1 number(s): "1"

Test #36:

score: 0
Accepted
time: 8ms
memory: 13280kb

input:

aeopmcmwrhguiwffrvfmijwdutvhvzgdvuaflykkwerynjfneclfafkusghbszsjmynmjslvcebzylkvvxasdftmbbemukudtizeuumhaxscvqnonborllzznvomcuifdfyhhgdqsbhuiinxqtdhkqvkngsqegfnljyyvwzhxpnaffajjcmkcdxqvxfwivskhcolqbyqyugnpmgykpmrrihxblvjpkzegrcietflntaneaphunzzdzcclkquwjsdrpdoldvqkbxgidnplshogjbpxmygdsuopaamuxkzcdtt...

output:

0

result:

ok 1 number(s): "0"

Test #37:

score: -100
Wrong Answer
time: 6ms
memory: 13284kb

input:

joodulqotoczxazdkimprykjknkmujncmpycodzpwtbjrrbndhgbxxekaybkzsigroqqrpvmhnwhjornbmkfyyzfojojevqzwydgafhnxqtnokzoxlorvslfdaluinzespzbxhkdcramydwulbfwsowfuniegxqmmvvdajqsrkbsctkrqlqdiahwtmqcqvbrzvzkvdxlshpcjiwfcdwqtyxagpdblwrslmqzkbfjyxrhjttmrxpkcyyzuqbmjehhgqdfygovbzvcbqphkhvvlluijvktffqavvylsiwsraco...

output:

71816

result:

wrong answer 1st numbers differ - expected: '71844', found: '71816'