buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
if (S == T.substr(1, S.size())) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
if (S == T.substr(0, S.size())) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 15, 339, 51, 16, 12, 2, 3, 4, 0, 13], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 13]] | 1 | 61 |
#include <cstring>
#include <iostream>
using namespace std;
int main() {
string s, q;
cin >> s >> q;
int flag = 0, cnt = 0;
int len = s.length();
for (int i = 0; i < len; i++) {
if (s[i] != q[i]) {
flag = 1;
} else
cnt++;
}
if (flag == 0)
cout << "yes" << endl;
else
cout << "... | #include <cstring>
#include <iostream>
using namespace std;
int main() {
string s, q;
cin >> s >> q;
int flag = 0, cnt = 0;
int len = s.length();
for (int i = 0; i < len; i++) {
if (s[i] != q[i]) {
flag = 1;
} else
cnt++;
}
if (flag == 0)
cout << "Yes" << endl;
else
cout << "... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 107 |
S=input()
T=input()
if S[:-1]==T[:-2]:
print("Yes")
else:
print("No") | S=input()
T=input()
if S==T[:-1]:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 57, 15, 666, 0, 206, 0, 70], ["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 102], ["-", 15, 666, 0, 206, 206, 663, 0, 664, 17, 33], ["-", 15, 666, 0, 206, 206, 663, 0, 664, 28, 612], ["-", 0, 656, 0, 57, 15, 666, 0, 206, 0, 73], ["+", 15, 666, 0, 206, 206, 663, 0, 664, 28, 612]] | 5 | 39 |
S = input()
T = input()
if ((S in T) and (len(S)+1 == len(T))):
print("Yes")
else:
print("No")
| S = input()
T = input()
if ((S in T[:-1]) and (len(S)+1 == len(T))):
print("Yes")
else:
print("No")
| [["+", 0, 679, 31, 23, 0, 666, 0, 206, 0, 70], ["+", 31, 23, 0, 666, 0, 206, 206, 663, 0, 102], ["+", 0, 666, 0, 206, 206, 663, 0, 664, 17, 33], ["+", 0, 666, 0, 206, 206, 663, 0, 664, 28, 612], ["+", 0, 679, 31, 23, 0, 666, 0, 206, 0, 73]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ss = S.size();
// cout << T.substr(0,ss) << ss << endl;
if (T.substr(0, ss) == S && T.size() - 1 == ss)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ss = S.size();
// cout << T.substr(0,ss) << ss << endl;
if (T.substr(0, ss) == S && T.size() - 1 == ss)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
string a, b;
int main() {
cin >> a >> b;
a.erase(a.size() - 1, 1);
if (a == b)
cout << "Yes";
else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
string a, b;
int main() {
cin >> b >> a;
a.erase(a.size() - 1, 1);
if (a == b)
cout << "Yes";
else
cout << "No";
} | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 62 |
#include <bits/stdc++.h>
#define max3(a, b, c) max(a, max(b, c))
#define min3(a, b, c) min(a, min(b, c))
#define max4(a, b, c, d) max(max(a, b), max(c, d))
#define min4(a, b, c, d) min(min(a, b), min(c, d))
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) a *b / __gcd(a, b)
#define print1(a, n) ... | #include <bits/stdc++.h>
#define max3(a, b, c) max(a, max(b, c))
#define min3(a, b, c) min(a, min(b, c))
#define max4(a, b, c, d) max(max(a, b), max(c, d))
#define min4(a, b, c, d) min(min(a, b), min(c, d))
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) a *b / __gcd(a, b)
#define print1(a, n) ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 1,503 |
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
string t;
cin >> t;
int dem = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
++dem;
}
}
if (dem == 1) {
cout << "No";
} else {
cout << "Yes";
}
} | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
string t;
cin >> t;
int dem = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
++dem;
}
}
if (dem >= 1) {
cout << "No";
} else {
cout << "Yes";
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 91 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String res = "";
String s = sc.next();
String t = sc.next();
if (t.startsWith(s) && t.length() - 1 == s.length()) {
res = "true";
} else {
res = "false";
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String res = "";
String s = sc.next();
String t = sc.next();
if (t.startsWith(s) && t.length() - 1 == s.length()) {
res = "Yes";
} else {
res = "No";
... | [["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 491]] | 3 | 108 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define _GLIBCXX_DEBUG
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
const ll INF = 9223372036854775807;
int main() {
string S, T;
cin >> S >> T;
int C = 0;
rep(i, S.size()) {
if (S.at(i) == T.at(i))
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define _GLIBCXX_DEBUG
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
const ll INF = 9223372036854775807;
int main() {
string S, T;
cin >> S >> T;
int C = 0;
rep(i, S.size()) {
if (S.at(i) != T.at(i))
... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using pi = pair<int, int>;
using mp = map<int, int>;
using ump = unordered_map<int, int>;
#define MOD 1000000007
#define fastio ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using pi = pair<int, int>;
using mp = map<int, int>;
using ump = unordered_map<int, int>;
#define MOD 1000000007
#define fastio ... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 135 |
#include <bits/stdc++.h>
#include <iostream>
#define lli long long
using namespace std;
int main() {
string a, b;
cin >> a >> b;
if (a.size() + 1 != b.size())
cout << "NO\n";
else {
if (a == b.substr(0, a.size()))
cout << "YES\n";
else
cout << "NO\n";
}
}
| #include <bits/stdc++.h>
#include <iostream>
#define lli long long
using namespace std;
int main() {
string a, b;
cin >> a >> b;
if (a.size() + 1 != b.size())
cout << "No\n";
else {
if (a == b.substr(0, a.size()))
cout << "Yes\n";
else
cout << "No\n";
}
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
if (b.substr(0, b.size() - 2) == a)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
if (b.substr(0, b.size() - 1) == a)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 51, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 51, 16, 31, 2, 3, 4, 0, 16, 12, 13]] | 1 | 62 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll t, i, j, temp1, temp2, x, y, z, sum = 0, o, n, m, k, d;
string a, b;
cin >> a >> b;
if (b.size() == a.size() + 1 && a == b.substr(0, b.size() - 1)) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll t, i, j, temp1, temp2, x, y, z, sum = 0, o, n, m, k, d;
string a, b;
cin >> a >> b;
if (b.size() == a.size() + 1 && a == b.substr(0, b.size() - 1)) {
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 131 |
a = input()
b = input()
if b.startswith(a) and len(a) == (len(b) -1):
print("YES")
else:
print("NO") | a = input()
b = input()
if b.startswith(a) and len(a) == (len(b) -1):
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 46 |
a,b=input().split()
b = b[:-1]
if a ==b:
print('Yes')
else:
print('No') | a=input()
b=input()
b = b[:-1]
if a ==b:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 38 |
#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
T.pop_back();
if (S.compare(T) == 0)
cout << "YES\n";
else
cout << "NO\n";
return 0;
} | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
T.pop_back();
if (S.compare(T) == 0)
cout << "Yes\n";
else
cout << "No\n";
return 0;
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 62 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) != t.charAt(i)) {
System.out.println("No");
}
}
System.ou... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) != t.charAt(i)) {
System.out.println("No");
return;
}
... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 8, 498, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 498, 0, 195, 8, 196, 0, 37, 0, 38]] | 3 | 113 |
<?php
$s1=trim(fgets(STDIN));
$s2=trim(fgets(STDIN));
if ($s1==substr($s2,0,strlen($s2)-1)) {
echo 'YES';
} else {
echo 'NO';
} | <?php
$s1=trim(fgets(STDIN));
$s2=trim(fgets(STDIN));
if ($s1==substr($s2,0,strlen($s2)-1)) {
echo 'Yes';
} else {
echo 'No';
} | [["-", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["-", 75, 76, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 75, 76, 8, 9, 0, 608, 0, 557, 0, 610]] | 6 | 59 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned ll
#define vi vector<int>
#define ii pair<int, int>
#define vii vector<ii>
#define INFLL 9e18
#define INF 2e9
#define EPS 1e-9
#define pb push_back
#define emp emplace_back
#define PI acos(-1.0)
#define endl "\n"
#define mp make_p... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned ll
#define vi vector<int>
#define ii pair<int, int>
#define vii vector<ii>
#define INFLL 9e18
#define INF 2e9
#define EPS 1e-9
#define pb push_back
#define emp emplace_back
#define PI acos(-1.0)
#define endl "\n"
#define mp make_p... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
bool good = true;
if (s1.size() + 1 != s2.size())
good = false;
for (int i = 0; i < s1.size(); i++) {
if (s1.at(i) != s2.at(i))
good = false;
break;
}
if (good)
cout << "Yes" << endl;
else... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
bool good = true;
if (s1.size() + 1 != s2.size())
good = false;
for (int i = 0; i < s1.size(); i++) {
if (s1.at(i) != s2.at(i)) {
good = false;
break;
}
}
if (good)
cout << "Yes" << en... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 111 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int flag = 0;
int n1 = s.length();
int n2 = t.length();
if (n2 = n1 + 1) {
for (int i = 0; i < n1; i++) {
if (s[i] != t[i]) {
flag = 1;
break;
}
}
if (flag == 1)
cout << "NO"... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int flag = 0;
int n1 = s.length();
int n2 = t.length();
if (n2 = n1 + 1) {
for (int i = 0; i < n1; i++) {
if (s[i] != t[i]) {
flag = 1;
break;
}
}
if (flag == 1)
cout << "No"... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 133 |
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb(x) push_back(x)
#define mp make_pair
#define sz(x) ((int)(x).size())
#define endl "\n"
#define fastio \
ios_base::sync_with_stdio(false); \
... | #include <bits/stdc++.h>
#define fi first
#define se second
#define pb(x) push_back(x)
#define mp make_pair
#define sz(x) ((int)(x).size())
#define endl "\n"
#define fastio \
ios_base::sync_with_stdio(false); \
... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 195 |
#include <iostream>
using namespace std;
#include <algorithm>
#include <map>
#include <string>
#include <vector>
typedef long long ll;
#include <cmath>
#include <iomanip>
const int MOD = 1000000007;
ll POWER(ll x, ll y) {
ll ret = 1;
ll p = x;
for (ll i = y; i > 0; i /= 2) {
if (i % 2)
ret = (ret * p)... | #include <iostream>
using namespace std;
#include <algorithm>
#include <map>
#include <string>
#include <vector>
typedef long long ll;
#include <cmath>
#include <iomanip>
const int MOD = 1000000007;
ll POWER(ll x, ll y) {
ll ret = 1;
ll p = x;
for (ll i = y; i > 0; i /= 2) {
if (i % 2)
ret = (ret * p)... | [["-", 15, 23, 0, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 23, 0, 16, 31, 2, 63, 118, 28, 22], ["-", 31, 2, 3, 4, 0, 2, 63, 118, 28, 22], ["+", 31, 2, 3, 4, 0, 2, 63, 118, 28, 22], ["-", 12, 23, 0, 41, 15, 23, 0, 16, 12, 22], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 12, 22]] | 1 | 213 |
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int flag = 1;
for (int i = 0; i < s.size(); i++) {
if (s[i] == t[i]) {
flag = 1;
} else {
flag = 0;
break;
}
}
if (flag == 1) {
printf("Y... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int flag = 1;
for (int i = 0; i < s.size(); i++) {
if (s[i] == t[i]) {
flag = 1;
} else {
flag = 0;
break;
}
}
if (flag == 1) {
printf("Y... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 112 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
string s, t;
cin >> s >> t;
for (int i = 0; i < (int)s.size(); i++) {
if (s[i] != t[i]) {
cout << "NO\n";
return 0;
}
}
if (t.size() != s.size() + 1) {
cout << "NO\n";
return 0;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
string s, t;
cin >> s >> t;
for (int i = 0; i < (int)s.size(); i++) {
if (s[i] != t[i]) {
cout << "No\n";
return 0;
}
}
if (t.size() != s.size() + 1) {
cout << "No\n";
return 0;
}... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 122 |
first = input()
second = input()
if(second.find(first) >= 0 and len(second) == len(first) + 1):
print("Yes")
else:
print("No") | first = input()
second = input()
if(second.find(first) == 0 and len(second) == len(first) + 1):
print("Yes")
else:
print("No") | [["-", 0, 57, 15, 23, 0, 679, 31, 666, 667, 20], ["+", 0, 57, 15, 23, 0, 679, 31, 666, 667, 60]] | 5 | 48 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string first, second;
cin >> first >> second;
int len = second.size();
char add = second.at(len - 1);
first.push_back(add);
if (first == second) {
cout << "yes" << endl;
} else {
cout << "no" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string first, second;
cin >> first >> second;
int len = second.size();
char add = second.at(len - 1);
first.push_back(add);
if (first == second) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 78 |
// atcoder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int64_t i = 0; i < n; i++)
const double PI = 3.14159265358979323846;
vector<string> strrr;
int64_t max_depth;
string search(int64_t a, int64_t b, int64_t c, string str, int... | // atcoder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int64_t i = 0; i < n; i++)
const double PI = 3.14159265358979323846;
vector<string> strrr;
int64_t max_depth;
string search(int64_t a, int64_t b, int64_t c, string str, int... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 436 |
N = input()
M = input()
Nlength = len(N)
flag = True
for x in range(Nlength):
if N[x]==M[x]:
continue
else:
flag=False
if flag:
print("YES")
else:
print("NO") | N = input()
M = input()
Nlength = len(N)
flag = True
for x in range(Nlength):
if N[x]==M[x]:
continue
else:
flag=False
if flag:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 61 |
s=input()
t=input()
t2=s[:len(s)]
if s==t2:
print("Yes")
else:
print("No")
| s=input()
t=input()
t2=t[:len(t)-1]
if s==t2:
print("Yes")
else:
print("No")
| [["-", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["-", 12, 206, 206, 663, 0, 652, 3, 4, 0, 22], ["+", 206, 663, 0, 657, 31, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 206, 206, 663, 0, 657, 17, 33], ["+", 0, 662, 12, 206, 206, 663, 0, 657, 12, 612]] | 5 | 39 |
s = input()
t = input()
if t[0:len(s)] == s:
print('yes')
else:
print('no') | s = input()
t = input()
if t[0:len(s)] == s:
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 37 |
S = input().rstrip()
T = input().rstrip()
if S[:] == T[0:-1]:
print("Yes")
else:
print("no") | S = input().rstrip()
T = input().rstrip()
if S[:] == T[0:-1]:
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 46 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string T;
int flag = 0;
cin >> S >> T;
if (S.size() + 1 == T.size()) {
for (int i = 0; i < S.size(); i++) {
if (S.at(i) == T.at(i)) {
continue;
} else {
cout << "No" << endl;
flag = -1;
}
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string T;
int flag = 0;
cin >> S >> T;
if (S.size() + 1 == T.size()) {
for (int i = 0; i < S.size(); i++) {
if (S.at(i) == T.at(i)) {
continue;
} else {
cout << "No" << endl;
flag = -1;
break;... | [["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 94], ["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 35]] | 1 | 129 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define rall(x) (x... | #include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define rall(x) (x... | [["-", 0, 7, 15, 16, 12, 2, 3, 4, 0, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 22]] | 1 | 189 |
"use strict"
function main(arg) {
if (arg.trim().split("\n")[0] ===
arg.trim().split("\n")[0].substr(0, arg.trim().split("\n")[0].length)) {
console.log("Yes");
} else {
console.log("No");
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | "use strict"
function main(arg) {
if (arg.trim().split("\n")[0] ===
arg.trim().split("\n")[1].substr(0, arg.trim().split("\n")[0].length)) {
console.log("Yes");
} else {
console.log("No");
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | [["-", 0, 16, 12, 2, 63, 558, 500, 69, 71, 555], ["+", 0, 16, 12, 2, 63, 558, 500, 69, 71, 555]] | 2 | 111 |
/*
* Created on: 8 / 5 / 2020
* Author: Eslam Waheed
*/
#include <bits/stdc++.h>
//#include <bits/BIGINT.h>
//#include <bits/Int128.h>
using namespace std;
//#define _CRT_SECURE_NO_WARNINGS
//#define __USE_MINGW_ANSI_STDIO
#define Eslam__Waheed \
ios_... | /*
* Created on: 8 / 5 / 2020
* Author: Eslam Waheed
*/
#include <bits/stdc++.h>
//#include <bits/BIGINT.h>
//#include <bits/Int128.h>
using namespace std;
//#define _CRT_SECURE_NO_WARNINGS
//#define __USE_MINGW_ANSI_STDIO
#define Eslam__Waheed \
ios_... | [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 179 |
s = input()
t =input()
n=len(s)
c=1
for i in range(n-1):
if s[i] != t[i]: c =0
if c:
print('Yes')
else:
print('No') | s = input()
t =input()
n=len(s)
c=1
for i in range(n):
if s[i] != t[i]: c =0
if c:
print('Yes')
else:
print('No') | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin.ignore();
cin >> t;
int l = (int)s.length();
for (int i = 0; i < l; i++) {
if (s[i] != t[i]) {
printf("NO\n");
return 0;
}
}
printf("YES\n");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin.ignore();
cin >> t;
int l = (int)s.length();
for (int i = 0; i < l; i++) {
if (s[i] != t[i]) {
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 95 |
import math
sys.setrecursionlimit(10**9)
def main():
S = input()
T = input()
if S == T[:-1] and len(T) == 1 + len(S):
print("Yes")
exit()
print("No")
if __name__ == "__main__":
main()
| import sys
import math
sys.setrecursionlimit(10**9)
def main():
S = input()
T = input()
if S == T[:-1] and len(T) == 1 + len(S):
print("Yes")
exit()
print("No")
if __name__ == "__main__":
main() | [["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487]] | 5 | 72 |
s = input()
t = input()
if s[0:-1] == t[0:-2]:
print('Yes')
else:
print('No') | s = input()
t = input()
if s[0:] == t[0:-1]:
print('Yes')
else:
print('No') | [["-", 15, 666, 0, 206, 206, 663, 0, 664, 17, 33], ["-", 15, 666, 0, 206, 206, 663, 0, 664, 28, 612], ["+", 15, 666, 0, 206, 206, 663, 0, 664, 28, 612]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int len = s.length(), tLen = t.length();
if (len + 1 != tLen) {
cout << "No";
return 0;
}
for (int i = 0; i < len; i++) {
if (s[i] != t[i]) {
cout << "NO";
return 0;
}
}
cout << "YES... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int len = s.length(), tLen = t.length();
if (len + 1 != tLen) {
cout << "No";
return 0;
}
for (int i = 0; i < len; i++) {
if (s[i] != t[i]) {
cout << "No";
return 0;
}
}
cout << "Yes... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 109 |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#include <numeric>
#define ll long long
#define ull unsigned long
#define mpa make_pair
#define pb push_back
#define ff first
#define pii pair<ll, ll>
#define dd double
#define trace(x) cerr << #x << " : " << x << endl
#define ss second
#define boost ios_ba... | #include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#include <numeric>
#define ll long long
#define ull unsigned long
#define mpa make_pair
#define pb push_back
#define ff first
#define pii pair<ll, ll>
#define dd double
#define trace(x) cerr << #x << " : " << x << endl
#define ss second
#define boost ios_ba... | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22], ["-", 15, 339, 51, 16, 12, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 22]] | 1 | 209 |
s = input()
t = input()
k = abcdefghijklmnopqrstuvwxwz
if s == t[:-1]:
if t[-1] in k:
print("Yes")
else:
print("No")
else:
print("No") | s = input()
t = input()
k = "abcdefghijklmnopqrstuvwxwz"
if s == t[:-1]:
if t[-1] in k:
print("Yes")
else:
print("No")
else:
print("No") | [["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 654], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 655]] | 5 | 54 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String S = scanner.nextLine();
String T = scanner.nextLine();
if (T.length() - 1 != S.length()) {
System.out.print("false");
} else {
if (S.equals(T.substri... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String S = scanner.nextLine();
String T = scanner.nextLine();
if (T.length() - 1 != S.length()) {
System.out.print("No");
} else {
if (S.equals(T.substring(... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 132 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define int ll
#define pb push_back
#define mp make_pair
#define pi 3.14
typedef pair<int, int> ii;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
string s, t;
cin >> s >> t;
if (s == t.substr(0, t.length() - 1))
cout << "yes" <<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define int ll
#define pb push_back
#define mp make_pair
#define pi 3.14
typedef pair<int, int> ii;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
string s, t;
cin >> s >> t;
if (s == t.substr(0, t.length() - 1))
cout << "Yes" <<... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 97 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
bool nazo = false;
for (int i = 0; i < (S.size() - 1); i++) {
if (S.at(i) == T.at(i)) {
nazo = true;
} else {
nazo = false;
break;
}
}
if (nazo) {
cout << "Yes";
} else {
cout << "N... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
bool nazo = false;
for (int i = 0; i <= (S.size() - 1); i++) {
if (S.at(i) == T.at(i)) {
nazo = true;
} else {
nazo = false;
break;
}
}
if (nazo) {
cout << "Yes";
} else {
cout << "... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 104 |
s = gets.chpmp.split("")
t = gets.chpmp.split("")
flag = 1
for i in 0..(s.length-1)
if s[i] != t[i]
flag = 0
break
end
end
(flag == 1) ? (puts "Yes"):(puts "No") | s = gets.chomp.split("")
t = gets.chomp.split("")
flag = 1
for i in 0..(s.length-1)
if s[i] != t[i]
flag = 0
break
end
end
(flag == 1) ? (puts "Yes"):(puts "No") | [["-", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22]] | 4 | 72 |
//#include <boost/multiprecision/cpp_int.hpp>
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define pb push_back
#define mp make_pair
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define test \
ll t = 0; ... | //#include <boost/multiprecision/cpp_int.hpp>
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define pb push_back
#define mp make_pair
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define test \
ll t = 0; ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 139 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string a, b;
cin >> a >> b;
if (a == b.substr(0, a.length() - 1))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string a, b;
cin >> a >> b;
if (a == b.substr(0, a.length()))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 51, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["-", 51, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 63 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 2147483647;
inline ll read() {
ll x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = (x << 1) + (x << 3) + (ch ^ 48... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 2147483647;
inline ll read() {
ll x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = (x << 1) + (x << 3) + (ch ^ 48... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 201 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
string s1, s2;
ll n, mark = 0;
cin >> s1;
cin >> s2;
n = s2.size();
for (ll i = 0; i < s1.size(); i++) {
if (s1[i] != s2[i]) {
mark = 1;
}
}
if (!(s2[n ... |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
string s1, s2;
ll n, mark = 0;
cin >> s1;
cin >> s2;
n = s2.size();
for (ll i = 0; i < s1.size(); i++) {
if (s1[i] != s2[i]) {
mark = 1;
}
}
if (!(s2[n ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 165 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef map<int, int> mii;
typedef map<ll, ll> mll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define fi first
#define... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef map<int, int> mii;
typedef map<ll, ll> mll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define fi first
#define... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 17, 131], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 119, 120], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 25]] | 1 | 262 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
#define mp make_pair
#define pb push_back
#define pf push_front
#define ss second
#define ff first
#define sz(x) (int)x.size()
#define newl "\n"
#define vi vector<int>
#define pii pair<i... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
#define mp make_pair
#define pb push_back
#define pf push_front
#define ss second
#define ff first
#define sz(x) (int)x.size()
#define newl "\n"
#define vi vector<int>
#define pii pair<i... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 396 |
#include <bits/stdc++.h>
#include <climits>
#include <cmath>
#include <cstring>
#define int long long
#define umitr unordered_map<int, int>::iterator
#define usitr unordered_set<int>::iterator
#define fast \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#include <climits>
#include <cmath>
#include <cstring>
#define int long long
#define umitr unordered_map<int, int>::iterator
#define usitr unordered_set<int>::iterator
#define fast \
ios_base::sync_with_stdio(false); ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 212 |
#include <iostream>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
if (S == T.substr(0, T.length() - 1)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
if (S == T.substr(0, T.length() - 1)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 68 |
s = input();
t = input();
if t[:len(t)] == s:
print("Yes");
else:
print("No")
| s = input();
t = input();
if t[:len(t) - 1] == s:
print("Yes");
else:
print("No")
| [["+", 15, 666, 0, 206, 206, 663, 0, 657, 17, 33], ["+", 15, 666, 0, 206, 206, 663, 0, 657, 12, 612]] | 5 | 39 |
s=input()
t=input()
ans='Yes'
if len(s)+1==len(t) and s==t[0:len(t)]:
ans='Yes'
else:
ans='No'
print(ans) | s=input()
t=input()
ans='Yes'
if len(s)+1==len(t) and s==t[0:len(t)-1]:
ans='Yes'
else:
ans='No'
print(ans) | [["+", 12, 666, 0, 206, 206, 663, 0, 657, 17, 33], ["+", 12, 666, 0, 206, 206, 663, 0, 657, 12, 612]] | 5 | 56 |
/*
_ _
| |__ | |__ __ _ __ _ _ _ __ _
| '_ \| '_ \ / _` |/ _` | | | |/ _` |
| |_) | | | | (_| | (_| | |_| | (_| |
|_.__/|_| |_|\__,_|\__, |\__, |\__,_|
|___/ |___/
*/
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define ppb pop_back
#define BigInt __int128
#define en... | /*
_ _
| |__ | |__ __ _ __ _ _ _ __ _
| '_ \| '_ \ / _` |/ _` | | | |/ _` |
| |_) | | | | (_| | (_| | |_| | (_| |
|_.__/|_| |_|\__,_|\__, |\__, |\__,_|
|___/ |___/
*/
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define ppb pop_back
#define BigInt __int128
#define en... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 394 |
#include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
bool flag = false;
for (int i = 0; i < s1.length(); i++) {
if (s1[i] != s2[i]) {
flag = true;
}
}
if (flag)
cout << "NO" << endl;
else
cout << "YES" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
bool flag = false;
for (int i = 0; i < s1.length(); i++) {
if (s1[i] != s2[i]) {
flag = true;
}
}
if (flag)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 90 |
#include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <ccomplex>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <condition_var... | #include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <ccomplex>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <condition_var... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 552 |
/*
██████╗ ███████╗
██╔══██╗ ██╔════╝
██████╔╝ ███████╗
██╔══██╗ ╚════██║
██║ ██║ ███████║
╚═╝ ╚═╝ ╚══════╝
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for (int i = 0; i < n; i++)
#define rev(i, n) for (int i = n - 1; i >= 0; i--)
#define haha(j, a, n) for (int j = ... |
/*
██████╗ ███████╗
██╔══██╗ ██╔════╝
██████╔╝ ███████╗
██╔══██╗ ╚════██║
██║ ██║ ███████║
╚═╝ ╚═╝ ╚══════╝
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for (int i = 0; i < n; i++)
#define rev(i, n) for (int i = n - 1; i >= 0; i--)
#define haha(j, a, n) for (int j = ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 273 |
/* ----------------------- reclone_rk -------------------------*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
const int mod = 1e9 + 7;
int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
int MOD(int n) { return ((n % mod) + mod) % mod; }
int power(int a, int b) {
... | /* ----------------------- reclone_rk -------------------------*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
const int mod = 1e9 + 7;
int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
int MOD(int n) { return ((n % mod) + mod) % mod; }
int power(int a, int b) {
... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 322 |
/*** akshaykumar99 ***/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using id_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define f(i, x, n) for (i = x; i < n; i++)
#define fr(i, x,... | /*** akshaykumar99 ***/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using id_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define f(i, x, n) for (i = x; i < n; i++)
#define fr(i, x,... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 238 |
s=input()
r=input()
c=0
for i in range(len(s)):
if(s[i]==r[i]):
c=c+1
if(c==len(s) and len(r)==len(s)+1):
print("YES")
else:
print("NO")
| s=input()
r=input()
c=0
for i in range(len(s)):
if(s[i]==r[i]):
c=c+1
if(c==len(s) and len(r)==len(s)+1):
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 78 |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPr(i, n) for (int i = (n)-1; i >= 0; --i)
#define FORq(i, m, n) for (int i = (m); i <= (n); ++i)
#define FORqr(i, m, n) for (int i = (n); i >= (m); --i)
#define M... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPr(i, n) for (int i = (n)-1; i >= 0; --i)
#define FORq(i, m, n) for (int i = (m); i <= (n); ++i)
#define FORqr(i, m, n) for (int i = (n); i >= (m); --i)
#define M... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 313 |
"use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.trim().split(/ |\n/), cid = 0;
function main() {
let S = cin.shift();
let T = cin.shift();
if (S.length + 1 == T.length && T.substr(0, S.length)) {
console.log("Yes");
} else {
console.log("No");
}
}
main();
| "use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.trim().split(/ |\n/), cid = 0;
function main() {
let S = cin.shift();
let T = cin.shift();
if (S.length + 1 == T.length && S == T.substr(0, S.length)) {
console.log("Yes");
} else {
console.log("No");
}
}
main... | [["+", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 60]] | 2 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
t.pop_back();
if (s == t)
cout << "Yes\n";
else
cout << "NO\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
t.pop_back();
if (s == t)
cout << "Yes\n";
else
cout << "No\n";
return 0;
} | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 53 |
def main():
S = input()
T = input()
if len(S)==len(T)-1 and S==(T[:-1]):
ans = "YES"
else:
ans = "No"
print(ans)
if __name__ == '__main__':
main() | def main():
S = input()
T = input()
if len(S)==len(T)-1 and S==(T[:-1]):
ans = "Yes"
else:
ans = "No"
print(ans)
if __name__ == '__main__':
main() | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 65 |
s=input()
t=input()
t=t[:-1]
print(s)
if s==t:
print("Yes")
else:
print("No") | s=input()
t=input()
t=t[:-1]
if s==t:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 41 |
/*
NO
TIME
TO
DIE
--007
*/
#include <bits/stdc++.h>
#include <complex>
#include <ext/pb_ds/assoc_container.hpp>
//#include <boost/functional/hash.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace ... | /*
NO
TIME
TO
DIE
--007
*/
#include <bits/stdc++.h>
#include <complex>
#include <ext/pb_ds/assoc_container.hpp>
//#include <boost/functional/hash.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 566 |
#文字列の入力
S = input()
#文字列の入力
T = input()
S_list = list(S)
T_list = list(T)
count = 0
for i in range(len(S_list)):
S_list[i] == T_list[i]
count = count + 1
if(count == len(S_list)):
print("Yes")
else:
print("No") | #文字列の入力
S = input()
#文字列の入力
T = input()
S_list = list(S)
T_list = list(T)
count = 0
for i in range(len(S_list)):
if(S_list[i] == T_list[i]):
count = count + 1
if(count == len(S_list)):
print("Yes")
else:
print("No")
| [["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 15, 23, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 23, 0, 25], ["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 102]] | 5 | 76 |
#include <bits/stdc++.h>
typedef long long int ll;
ll N = 1e5 + 10;
using namespace std;
int main() {
// your code goes here
// ios_base::sync_with_stdio(false);
// cin.tie(NULL);
// cout.tie(NULL);
string s, t;
cin >> s >> t;
for (int i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
cout << "... | #include <bits/stdc++.h>
typedef long long int ll;
ll N = 1e5 + 10;
using namespace std;
int main() {
// your code goes here
// ios_base::sync_with_stdio(false);
// cin.tie(NULL);
// cout.tie(NULL);
string s, t;
cin >> s >> t;
for (int i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
cout << "... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 92 |
from copy import copy, deepcopy
from collections import Counter
from math import sqrt, floor, factorial
from itertools import permutations, combinations, combinations_with_replacement
from operator import mul
from functools import reduce
import bisect
MOD = 10**9 + 7
INF = float('inf')
S = input()
T = input()
print(S... | from copy import copy, deepcopy
from collections import Counter
from math import sqrt, floor, factorial
from itertools import permutations, combinations, combinations_with_replacement
from operator import mul
from functools import reduce
import bisect
MOD = 10**9 + 7
INF = float('inf')
S = input()
T = input()
if T[:-... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 89 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define int long long int
#define mod 1000000007
#define string_mod 2549536629329_base_255
#define pb push_back
#define F first
#define S second
#define ff first
#defin... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define int long long int
#define mod 1000000007
#define string_mod 2549536629329_base_255
#define pb push_back
#define F first
#define S second
#define ff first
#defin... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 242 |
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 110 |
//
// Created by yamunaku on 2020/05/10.
//
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repl(i, l, r) for (int i = (l); i < (r); i++)
#define per(i, n) for (int i = ((n)-1); i >= 0; i--)
#define perl(i, l, r) for (int i = ((r)-1); i >= (l); i--)
#define all(x... | //
// Created by yamunaku on 2020/05/10.
//
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repl(i, l, r) for (int i = (l); i < (r); i++)
#define per(i, n) for (int i = ((n)-1); i >= 0; i--)
#define perl(i, l, r) for (int i = ((r)-1); i >= (l); i--)
#define all(x... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 225 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
string s1, s2;
cin >> s1 >> s2;
bool flag = 1;
for (int i = 0; i < s1.size(); i++) {
if (s1[i] != s2[i])
flag = 0;
}
if (flag)
cout << "YES" << '\n';
else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
string s1, s2;
cin >> s1 >> s2;
bool flag = 1;
for (int i = 0; i < s1.size(); i++) {
if (s1[i] != s2[i])
flag = 0;
}
if (flag)
cout << "Yes" << '\n';
else
... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 113 |
S = input()
T = input()
if T[:len(S)] == S and len(T) == len(S) +1:
print("Yes")
else:
print("NO") | S = input()
T = input()
if T[:len(S)] == S and len(T) == len(S) +1:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 48 |
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#define ios \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#define ios \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["-", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22]] | 1 | 130 |
s = input()
t = input()
def check(s, t):
if len(t) - len(s) != 1 or len(s) ==0:
return False
for i in range(len(s)):
if s[i]!= t[i]:
return False
return True
if check(s, t):
print('YES')
else:
print('NO')
| s = input()
t = input()
def check(s, t):
if len(t) - len(s) != 1 or len(s) ==0:
return False
for i in range(len(s)):
if s[i]!= t[i]:
return False
return True
if check(s, t):
print('Yes')
else:
print('No')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
string s = S.substr(0, S.length());
if (S == s) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
string s = T.substr(0, S.length());
if (S == s) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 43, 49, 50, 51, 2, 63, 118, 28, 22], ["+", 0, 43, 49, 50, 51, 2, 63, 118, 28, 22]] | 1 | 66 |
import numpy as np
import sys
input = sys.stdin.readline
s = input().strip()
t = input().strip()
t = t[:-1]
print(t)
if s == t:
print("Yes")
else:
print("No")
| import numpy as np
import sys
input = sys.stdin.readline
s = input().strip()
t = input().strip()
t = t[:-1]
if s == t:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 62 |
// A
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string a, b;
cin >> a >> b;
for (int i = 0; i < a.size(); i++) {
if (a[i] != b[i] or a.size() != b.size() - 1) {
cout << "NO";
return 0;
}
}
cout << "YES";
return 0;
}
| // A
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string a, b;
cin >> a >> b;
for (int i = 0; i < a.size(); i++) {
if (a[i] != b[i] or a.size() != b.size() - 1) {
cout << "No";
return 0;
}
}
cout << "Yes";
return 0;
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define int int64_t
#define ld long double
const int MOD = 1e9 + 7;
const int N = 1e6 + 5;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s, t;
cin >> s >> t;
if (t.length() <= s.length() || ... | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define int int64_t
#define ld long double
const int MOD = 1e9 + 7;
const int N = 1e6 + 5;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s, t;
cin >> s >> t;
if (t.length() <= s.length() || ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 160 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
string a, b;
cin >> a >> b;
bool flag = true;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i]) {
flag = false;
break;
}
}
if (flag == true) {
cout << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
string a, b;
cin >> a >> b;
bool flag = true;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i]) {
flag = false;
break;
}
}
if (flag == true) {
cout << ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
#define SORT(a) sort((a).begin(), (a).end())
#define RSORT(a) reverse((a).begin(), (a).end())
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
const long long INF = 1LL << 60;
// const int INF=1010101010;
using Graph = vector<vector<int>>;
int main() {
... | #include <bits/stdc++.h>
using namespace std;
#define SORT(a) sort((a).begin(), (a).end())
#define RSORT(a) reverse((a).begin(), (a).end())
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
const long long INF = 1LL << 60;
// const int INF=1010101010;
using Graph = vector<vector<int>>;
int main() {
... | [["-", 51, 16, 31, 2, 3, 4, 0, 16, 17, 33], ["-", 51, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["-", 51, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 120 |
A = list(input())
B = list(input())
c = len(B)
del B[c-1]
if A == B:
print("Yes")
else:
print("NO") | A = list(input())
B = list(input())
c = len(B)
del B[c-1]
if A == B:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 48 |
S = input()
T = input()
if len(S) == len(T)+1 and S == T[:len(S)-1]:
print("Yes")
else:
print("No") | S = input()
T = input()
if len(S)+1 == len(T) and S == T[:len(S)]:
print("Yes")
else:
print("No")
| [["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 612], ["-", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72], ["-", 0, 57, 15, 679, 31, 666, 0, 657, 12, 612], ["-", 12, 666, 0, 206, 206, 663, 0, 657, 17, 33], ["-", 12, 666, 0, 206, 206, 663, 0, 657, 12, 612]] | 5 | 50 |
#include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i <= (b); ++i)
#define per(i, a, b) for (int i = a; i >= (b); --i)
#define mem(a, x) memset(a, x, sizeof(a))
#define pb push_back
#define pi pair<int, int>
#define mk make_pair
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) { return b ? gcd(b,... | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i <= (b); ++i)
#define per(i, a, b) for (int i = a; i >= (b); --i)
#define mem(a, x) memset(a, x, sizeof(a))
#define pb push_back
#define pi pair<int, int>
#define mk make_pair
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) { return b ? gcd(b,... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 177 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
int main() {
int t = 1;
// cin>>t;
while (t--) {
string s1, s2;
cin >> s1 >> s2;
s1 += char(s2[s2.length() - 1]);
if (s2 == s1)
cout << "YES\n";
else
cout << "NO\n";
}
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
int main() {
int t = 1;
// cin>>t;
while (t--) {
string s1, s2;
cin >> s1 >> s2;
s1 += char(s2[s2.length() - 1]);
if (s2 == s1)
cout << "Yes\n";
else
cout << "No\n";
}
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cou... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cou... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 132 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<long long> vll;
typedef pair<int, int> ii;
typedef long long ll;
#define sz(a) int((a).size())
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define mod2 998244353
#define ... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<long long> vll;
typedef pair<int, int> ii;
typedef long long ll;
#define sz(a) int((a).size())
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define mod2 998244353
#define ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 197 |
S = input()
T = input()
S_minus_1 = S[:len(S)]
if(S_minus_1 == S):
print("Yes")
else:
print("No") | S = input()
T = input()
T_minus_1 = T[:len(S)]
if(T_minus_1 == S):
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["-", 0, 656, 0, 57, 15, 23, 0, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 0, 22]] | 5 | 41 |
from sys import stdin
s = stdin.readline().rstrip()
t = stdin.readline().rstrip()
if(s == t[:-1]):
print('Yes')
else:
pring('No')
| from sys import stdin
s = stdin.readline().rstrip()
t = stdin.readline().rstrip()
if(s == t[:-1]):
print('Yes')
else:
print('No')
| [["-", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22]] | 5 | 52 |
#include <bits/stdc++.h>
using namespace std;
#include <numeric>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define endl "\n"
#define int long long int
#define mod 1000000007
#define I... | #include <bits/stdc++.h>
using namespace std;
#include <numeric>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define endl "\n"
#define int long long int
#define mod 1000000007
#define I... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
for (int i = 0; i < t.size(); i++) {
if (s[i] != t[i]) {
cout << "No" << endl;
return (0);
}
}
cout << "Yes" << endl;
return (0);
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
cout << "No" << endl;
return (0);
}
}
cout << "Yes" << endl;
return (0);
} | [["-", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22]] | 1 | 83 |
s = gets.chomp
t = gets.chomp
puts s == t.chop ? "YES" : "NO" | s = gets.chomp
t = gets.chomp
puts s == t.chop ? "Yes" : "No" | [["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]] | 4 | 24 |
s = input()
t = input()
if len(t) == len(s) + 1:
print("YES" if s == t[:-1] else "NO")
else:
print("NO")
|
s = input()
t = input()
if len(t) == len(s) + 1:
print("Yes" if s == t[:-1] else "No")
else:
print("No")
| [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 50 |
s = input()
t = input()
t_last = t[:-1]
if s == t_last:
print(t)
if s != t:
print('Yes')
else:
print('No')
else:
print('No') | s = input()
t = input()
t_last = t[:-1]
if s == t_last:
if s != t:
print('Yes')
else:
print('No')
else:
print('No') | [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 54 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.