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 <algorithm>
#include <cstdio>
using namespace std;
using ll = long long;
int ans[128];
int main() {
ll N;
scanf("%lld", &N);
int i;
for (i = 0; N; i++) {
ans[i] = N % 26;
N /= 26;
}
while (i--) {
printf("%c", ans[i] - 1 + 'a');
}
printf("\n");
return 0;
}
| #include <algorithm>
#include <cstdio>
using namespace std;
using ll = long long;
int ans[128];
int main() {
ll N;
scanf("%lld", &N);
int i;
for (i = 0; N; i++) {
N--;
ans[i] = N % 26;
N /= 26;
}
while (i--) {
printf("%c", ans[i] + 'a');
}
printf("\n");
return 0;
}
| [["+", 0, 7, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 17, 33], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 1 | 103 |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
const int MAXN = 2e6 + 5;
char ans[MAXN];
// int main() {
// long long n;
// while (~scanf("%lld", &n)) {
// printf("%lld\n", n * (n + 1) / 2);
// }
// return 0;
//}
int main() {
long long n;
scanf("%d", &n);
int l = 0;
while (n... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
const int MAXN = 2e6 + 5;
char ans[MAXN];
// int main() {
// long long n;
// while (~scanf("%lld", &n)) {
// printf("%lld\n", n * (n + 1) / 2);
// }
// return 0;
//}
int main() {
long long n;
scanf("%lld", &n);
int l = 0;
while ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 108 |
N = int(input()) - 1
keta = 1
cumsum = 0
oldcumsum = 0
while True:
cumsum += 26 ** keta
if cumsum > N:
break
else:
oldcumsum = cumsum
keta += 1
N -= oldcumsum
#N -= 1
print(keta)
name = ''
for k in range(1,keta+1):
ch_n = N // (26 ** (keta - k))
ch = chr(ord('a') + ch_n)
name += ch
N -= ch_n *... | N = int(input()) - 1
keta = 1
cumsum = 0
oldcumsum = 0
while True:
cumsum += 26 ** keta
if cumsum > N:
break
else:
oldcumsum = cumsum
keta += 1
N -= oldcumsum
#N -= 1
#print(keta)
name = ''
for k in range(1,keta+1):
ch_n = N // (26 ** (keta - k))
ch = chr(ord('a') + ch_n)
name += ch
N -= ch_n ... | [["-", 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 | 111 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int INF = 1e9 + 10;
ll N;
int main() {
cin >> N;
string res = "";
while (N) {
res += (char)... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int INF = 1e9 + 10;
ll N;
int main() {
cin >> N;
string res = "";
while (N) {
--N;
res ... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 51, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 51, 23, 0, 16, 12, 23, 0, 16, 12, 13]] | 1 | 123 |
n=int(input())
abc="abcdefghijklmnopqrstuvwxyz"
ans=""
while True:
ans += abc[n%26-1]
n //= 26
if n == 0:
print(ans[::-1])
break | n=int(input())
abc="abcdefghijklmnopqrstuvwxyz"
ans=""
while True:
n-=1
ans += abc[n%26]
n //= 26
if n == 0:
print(ans[::-1])
break | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 0, 1, 0, 677, 12, 206, 206, 657, 17, 33], ["-", 0, 1, 0, 677, 12, 206, 206, 657, 12, 612]] | 5 | 49 |
#include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
... | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 11, 12, 16, 31, 74, 51, 103, 0, 125], ["+", 0, 11, 12, 16, 31, 74, 51, 103, 0, 125]] | 1 | 213 |
N=int(input())
i=N
base=26
Ans=''
st='abcdefghijklmnopqrstuvwxyz'
while i!=0:
if i>base:
wkm=i%base
wk=wkm//(base//26)
Ans=st[wk-1]+Ans
if wkm!=0:
i-=wk
else: #余りがないときはbase分を引く
i-=base
base=base*26
else: #最後は商を頭につける
base=base//26
wk=i//base
Ans=st[wk-1]+Ans
... | N=int(input())
i=N
base=26
Ans=''
st='abcdefghijklmnopqrstuvwxyz'
while i!=0:
if i>base:
wkm=i%base
wk=wkm//(base//26)
Ans=st[wk-1]+Ans
if wkm!=0:
i-=wkm
else: #余りがないときはbase分を引く
i-=base
base=base*26
# print(i)
else: #最後は商を頭につける
base=base//26
wk=i//base
Ans=st[wk-1... | [["-", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22]] | 5 | 106 |
#include <bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
// cout << fixed << setprecision(8) << a << endl;
#define Fast_Input \
ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
#define pb push_back
#define mem(a, b) memset(a, b, s... | #include <bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
// cout << fixed << setprecision(8) << a << endl;
#define Fast_Input \
ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
#define pb push_back
#define mem(a, b) memset(a, b, s... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13]] | 1 | 313 |
N = int(input())
res = ''
while True:
amari = N % 26
if amari == 0:
amari = 26
res += chr(96 + amari)
if N - amari == 0:
break
N //= 26
print(res[::-1])
| N = int(input())
res = ''
while True:
amari = N % 26
if amari == 0:
amari = 26
res += chr(96 + amari)
N -= amari
if N == 0:
break
N //= 26
print(res[::-1])
| [["-", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 33], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pii pair<int, int>
#define pb push_back
#define vi vector<int>
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
string ans = "";
while (n > 0) {
ans += ('a' + ((n - 1) % 26));... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define pii pair<int, int>
#define pb push_back
#define vi vector<int>
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
string ans = "";
while (n > 0) {
n--;
ans += ('a' + ((n) %... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 112 |
N = int(input())
p = N
s = []
abt = "zabcdefghijklmnopqrstuvwxy"
ans = ""
while p > 0:
s.append(p % 26)
p //= 26
for i in s[::-1]:
ans += abt[i]
print(ans) | N = int(input())
p = N
s = []
abt = "abcdefghijklmnopqrstuvwxyz"
ans = ""
while p > 0:
p -= 1
s.append(p % 26)
p //= 26
for i in s[::-1]:
ans += abt[i]
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 61 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long
#define pb push_back
#define mk make_pair
#define MAX 1000001
ll prime[MAX];
long long mod;
ll rec(vector<vector<ll>> &dp, vector<ll> &arr, int n, int i, int k, int w) {
ll ans = 0;
if (i >= n)
return 0;
if (dp[i][k] != -... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long
#define pb push_back
#define mk make_pair
#define MAX 1000001
ll prime[MAX];
long long mod;
ll rec(vector<vector<ll>> &dp, vector<ll> &arr, int n, int i, int k, int w) {
ll ans = 0;
if (i >= n)
return 0;
if (dp[i][k] != -... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 1 | 598 |
#pragma region
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using name... | #pragma region
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using name... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 51, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 51, 23, 0, 16, 12, 23, 0, 16, 12, 13]] | 1 | 436 |
n = int(input())
abc = 'abcdefghijklmnopqrstuvwxyz'
s = ''
while n > 0:
n -= 1
n, mod = divmod(n, 26)
s += a[mod]
print(s[::-1]) | n = int(input())
abc = 'abcdefghijklmnopqrstuvwxyz'
s = ''
while n > 0:
n -= 1
n, mod = divmod(n, 26)
s += abc[mod]
print(s[::-1]) | [["-", 8, 196, 0, 1, 0, 677, 12, 206, 51, 22], ["+", 8, 196, 0, 1, 0, 677, 12, 206, 51, 22]] | 5 | 51 |
N = int(input())
ans = []
num = N-1
while(True):
if num > 26:
ans.append(num%26)
num = num//26-1
else:
ans.append(num)
break
answer = ""
for n in ans[::-1]:
answer += chr(97+n)
print(answer) | N = int(input())
ans = []
num = N-1
while(True):
if num >= 26:
ans.append(num%26)
num = num//26-1
else:
ans.append(num)
break
answer = ""
for n in ans[::-1]:
answer += chr(97+n)
print(answer) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 78 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define IO ios::sync_with_stdio(false)
#define eps 1e... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define IO ios::sync_with_stdio(false)
#define eps 1e... | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22]] | 1 | 189 |
n = gets.chomp.to_i
ans = ''
while n > 0 do
n -= 1
ans += (97 + n % 26).chr
n /= 26
end
print(ans)
| n = gets.chomp.to_i
ans = ''
while n > 0 do
n -= 1
ans += (97 + n % 26).chr
n /= 26
end
print(ans.reverse)
| [["+", 0, 493, 0, 652, 3, 4, 0, 652, 17, 131], ["+", 0, 493, 0, 652, 3, 4, 0, 652, 735, 22]] | 4 | 38 |
//高知能系Vtuberの高井茅乃です。
// Twitter: https://twitter.com/takaichino
// YouTube: https://www.youtube.com/channel/UCTOxnI3eOI_o1HRgzq-LEZw
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF INT_MAX
#define LLINF LLONG_MAX
#define REP(i, n) for (int i = 0; i < n; i++)
#define REP1(i, n) for (int... | //高知能系Vtuberの高井茅乃です。
// Twitter: https://twitter.com/takaichino
// YouTube: https://www.youtube.com/channel/UCTOxnI3eOI_o1HRgzq-LEZw
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF INT_MAX
#define LLINF LLONG_MAX
#define REP(i, n) for (int i = 0; i < n; i++)
#define REP1(i, n) for (int... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 12, 16, 31, 74, 51, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 74, 51, 23, 0, 16, 12, 13]] | 1 | 144 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long int n;
cin >> n;
vector<char> name;
while (n != 0) {
char c = n % 26 + 'a' - 1;
name.push_back(c);
n /= 26;
}
for (int i = name.size() - 1; i >= 0; i--) {
cout << name[i];
}
cout << endl;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long int n;
cin >> n;
vector<char> name;
while (n != 0) {
n--;
char c = n % 26 + 'a';
name.push_back(c);
n /= 26;
}
for (int i = name.size() - 1; i >= 0; i--) {
cout << name[i];
}
cout << end... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
typedef pair<int, int> P;
int main() {
ll n;
cin >> n;
ll m;
string name;
while (n > 0) {
m = n % 26;
n = (n - m) / 26;
name += 0x60 + m;
}
reverse(name.begin(), name.end());
c... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
typedef pair<int, int> P;
int main() {
ll n;
cin >> n;
ll m;
string name;
while (n > 0) {
--n;
m = n % 26;
n = (n - m) / 26;
name += 0x61 + m;
}
reverse(name.begin(), name.en... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13]] | 1 | 101 |
N=int(input())
keta=1
a=26
ans=""
while N>0:
N-=1
ans+=chr(ord('a')+N%26)
N=N//26
print(ans) | N=int(input())
keta=1
a=26
ans=""
while N>0:
N-=1
ans+=chr(ord('a')+N%26)
N=N//26
print(ans[::-1]) | [["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 3, 4, 0, 206, 206, 663, 0, 664, 17, 33], ["+", 3, 4, 0, 206, 206, 663, 0, 664, 28, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]] | 5 | 50 |
#include <bits/stdc++.h>
#define debug(s) cout << s << endl
#define debug1(s, t) cout << s << " " << t << endl
#define debug2(s, t, u) cout << s << " " << t << " " << u << endl
#define printvec(v) \
for (auto &&i : v) ... | #include <bits/stdc++.h>
#define debug(s) cout << s << endl
#define debug1(s, t) cout << s << " " << t << endl
#define debug2(s, t, u) cout << s << " " << t << " " << u << endl
#define printvec(v) \
for (auto &&i : v) ... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 299 |
ans=[]
N=int(input())
alf=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
while N>0:
N,b=divmod(N,26)
b=alf[b-1]
ans.insert(0,b)
print(''.join(ans))
| ans=[]
N=int(input())
alf=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
while N>0:
N,b=divmod(N-1,26)
b=alf[b]
ans.insert(0,b)
print(''.join(ans))
| [["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 206, 206, 657, 17, 33], ["-", 0, 1, 0, 662, 12, 206, 206, 657, 12, 612]] | 5 | 160 |
#include <bits/stdc++.h>
int main() {
int64_t N;
scanf("%lld", &N);
std::string ans;
while (N > 0) {
ans += 'a' + (N % 26);
N /= 26;
}
std::reverse(ans.begin(), ans.end());
printf("%s\n", ans.c_str());
}
| #include <bits/stdc++.h>
int main() {
int64_t N;
scanf("%lld", &N);
std::string ans;
while (N > 0) {
N--;
ans += 'a' + (N % 26);
N /= 26;
}
std::reverse(ans.begin(), ans.end());
printf("%s\n", ans.c_str());
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 81 |
#include <iostream>
#include <string>
using namespace std;
int64_t N;
// N_max = 1000000000000001
string str = "";
void input() { cin >> N; }
void solve() {
// a~z,aa~zz,aaa~zzz 26進数ってことやな。最大10桁
int res;
for (int i = 0; i < 10; i++) {
N = N - 1;
res = N % 26;
N = N / 26;
str += char('a' + res)... | #include <iostream>
#include <string>
using namespace std;
int64_t N;
// N_max = 1000000000000001
string str = "";
void input() { cin >> N; }
void solve() {
// a~z,aa~zz,aaa~zzz 26進数ってことやな。最大10桁
int res;
for (int i = 0; i < 11; i++) {
N = N - 1;
res = N % 26;
N = N / 26;
str = char('a' + res) ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 114 |
#include <bits/stdc++.h>
using namespace std;
using namespace __detail;
typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define all(x) (x).begin(), (x).end()
#define en '\n'
#define FILL(x, v) memset(x, v, sizeof(x))
#define pb push_back
#defi... | #include <bits/stdc++.h>
using namespace std;
using namespace __detail;
typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define all(x) (x).begin(), (x).end()
#define en '\n'
#define FILL(x, v) memset(x, v, sizeof(x))
#define pb push_back
#defi... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13]] | 1 | 280 |
#include <bits/stdc++.h>
using namespace std;
using namespace __detail;
typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define fork(i, n) for (ll i = 0; i < (n); i++)
#define forn for (ll i = 0; i < (n); i++)
#define fori(i, k, n) for (ll i =... | #include <bits/stdc++.h>
using namespace std;
using namespace __detail;
typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define fork(i, n) for (ll i = 0; i < (n); i++)
#define forn for (ll i = 0; i < (n); i++)
#define fori(i, k, n) for (ll i =... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 392 |
# import itertools
# import math
# import sys
# import numpy as np
N = int(input())
# S = input()
# n, *a = map(int, open(0))
# X, N = map(int, input().split())
# P = list(map(int, input().split()))
# Q = list(map(int, input().split()))
# S = input()
# d = sorted(d.items(), key=lambda x:x[0]) # keyでsort
# all_cases =... | # import itertools
# import math
# import sys
# import numpy as np
N = int(input())
# S = input()
# n, *a = map(int, open(0))
# X, N = map(int, input().split())
# P = list(map(int, input().split()))
# Q = list(map(int, input().split()))
# S = input()
# d = sorted(d.items(), key=lambda x:x[0]) # keyでsort
# all_cases =... | [["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 75 |
N = int(input())
ans = ""
while N > 0:
a = N%26
N = N//26
ans = chr(int(a+96))+ans
print(ans) | N = int(input())
#N -= 1 #0index
ans = ""
while N > 0:
N-=1
a = N%26
N = N//26
ans = chr(int(a+97))+ans
#print(ans)
print(ans) | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 44 |
#!/usr/bin/env pypy3
N = int(input())
ans = ''
while N>0:
ans = chr(N%26+96) + ans
N = N // 26
print(ans)
| N = int(input())
ans = ''
while N>0:
N -= 1
ans = chr(N%26+97) + ans
N = N // 26
print(ans)
| [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 12, 657, 31, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 12, 612]] | 5 | 39 |
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define all(x) (x).begin(), (x).end()
#define PI 3.14159265358979323846264338327950L
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define all(x) (x).begin(), (x).end()
#define PI 3.14159265358979323846264338327950L
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 1 | 109 |
n = int(input())
alpha = "abcdefghijklmnopqrstuvwxyx"
ans = ""
counter = 0
while n!=0:
n -= 1
ans += alpha[n%26]
n //= 26
print(ans[::-1])
| n = int(input())
alpha = "abcdefghijklmnopqrstuvwxyz"
ans = ""
counter = 0
while n!=0:
n -= 1
ans += alpha[n%26]
n //= 26
print(ans[::-1])
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
string s;
cin >> s;
while (n) {
n -= 1;
s += n % 26 + 'a' - 1;
n /= 26;
}
reverse(s.begin(), s.end());
cout << s;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
string s;
cin >> s;
while (n) {
n -= 1;
s += n % 26 + 'a';
n /= 26;
}
reverse(s.begin(), s.end());
cout << s;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 72 |
#pragma GCC optimize("O3")
#include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
/// Info.
///****************************************************************************************************************************************///
/// author : BAHAA El... | #pragma GCC optimize("O3")
#include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
/// Info.
///****************************************************************************************************************************************///
/// author : BAHAA El... | [["-", 49, 50, 51, 16, 31, 23, 0, 27, 17, 68], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 33], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 11, 12, 16, 31, 23, 0, 27, 17, 68], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13]] | 1 | 101 |
#include <algorithm>
#include <array>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (decltype(n) i = 0; i < n; ++i)
inline constexpr ll Inf = (1ULL << 62) - 1;
template <class T> void updatemax(T &a, T b) {
... | #include <algorithm>
#include <array>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (decltype(n) i = 0; i < n; ++i)
inline constexpr ll Inf = (1ULL << 62) - 1;
template <class T> void updatemax(T &a, T b) {
... | [["+", 0, 7, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 7, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 17, 33], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 1 | 160 |
#include <iostream>
using namespace std;
int main() {
string s;
int n;
cin >> n;
while (n != 0) {
s = char(96 + n % 26) + s;
n /= 26;
}
cout << s;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
string s;
long long n;
cin >> n;
while (n--) {
s = char(97 + n % 26) + s;
n /= 26;
}
cout << s;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 27, 17, 68], ["-", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13]] | 1 | 54 |
n=int(input())
c=""
while n:
c=chr(n%26+96)+c
n//=26
print(c) | n=int(input())
c=""
while n:
n-=1
c=chr(n%26+97)+c
n//=26
print(c) | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 12, 657, 31, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 12, 612]] | 5 | 34 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string s;
long long n;
cin >> n;
while (n != 0) {
s = char(96 + n % 26) + s;
n /= 26;
}
cout << s << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string s;
long long n;
cin >> n;
while (n--) {
s = char(97 + n % 26) + s;
n /= 26;
}
cout << s << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 27, 17, 68], ["-", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13]] | 1 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
long long n;
cin >> n;
while (n != 0) {
s = char(96 + n % 26) + s;
n /= 26;
}
cout << s;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
long long n;
cin >> n;
while (n--) {
s = char(97 + n % 26) + s;
n /= 26;
}
cout << s;
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 27, 17, 68], ["-", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 31, 13]] | 1 | 55 |
N = int(input())
ans = ''
for i in range(1,99):
if 26**i >= N:
N -= 1
for s in range(i):
ans += chr(ord('a') + N%26)
N //= 26
break
else:
N -= 26**i
print(ans)
| N = int(input())
ans = ''
for i in range(1,99):
if 26**i >= N:
N -= 1
for s in range(i):
ans += chr(ord('a') + N%26)
N //= 26
break
else:
N -= 26**i
print(ans[::-1])
| [["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 3, 4, 0, 206, 206, 663, 0, 664, 17, 33], ["+", 3, 4, 0, 206, 206, 663, 0, 664, 28, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
ll k = 1;
ll num;
while (1) {
ll tmp = 1;
for (int i = 0; i < k; i++)
tmp *= 26;
if (26 * (tmp - 1) / 25 >= n) {
num = tmp;
break;
}
k++;
}
ll tmp = 1;
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
ll k = 1;
ll num;
while (1) {
ll tmp = 1;
for (int i = 0; i < k; i++)
tmp *= 26;
if (26 * (tmp - 1) / 25 >= n) {
num = tmp;
break;
}
k++;
}
ll tmp = 1;
for (int i = 0; ... | [["-", 0, 43, 49, 50, 51, 83, 0, 103, 0, 125], ["+", 0, 43, 49, 50, 51, 83, 0, 103, 0, 125]] | 1 | 304 |
N=int(input())
ans=""
for _ in range(10**5):
ans+=chr(ord("a")+(N%26)-1)
N=N//26
if N<=0:
break
print(ans[::-1]) | N=int(input())
ans=""
for _ in range(10**5):
N-=1
ans+=chr(ord("a")+(N%26))
N=N//26
if N<=0:
break
print(ans[::-1]) | [["+", 0, 7, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 0, 677, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 677, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 62 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin >> n;
string res;
while (n) {
ll curr = (n % 26);
if (curr == 0) {
res += 'z';
n = (n / 26) + 1;
} else {
res += (char)(curr + 'a' - 1);
n /= ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin >> n;
string res;
while (n) {
ll curr = (n % 26);
if (curr == 0) {
res += 'z';
n = (n / 26) - 1;
} else {
res += (char)(curr + 'a' - 1);
n /= ... | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 123 |
N = int(input())
alpha = 'abcdefghijklmnopqrstuvwxyz'
ans = ''
while N > 0:
ans = alpha[N%26] + ans
N = N//26
print(ans) | N = int(input())
alpha = 'abcdefghijklmnopqrstuvwxyz'
ans = ''
while N > 0:
N = N - 1
ans = alpha[N%26] + ans
N = N//26
print(ans) | [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 41 |
n = input()
chars = "Xabcdefghijklmnopqrstuvwxyz"
n_rem = n
ans = ""
while True:
x = n_rem % 26
if x == 0:
x = 26
ans += chars[x]
n_rem -= x
if n_rem == 0:
break
n_rem //= 26
print(ans[::-1]) | n = int(input())
chars = "Xabcdefghijklmnopqrstuvwxyz"
n_rem = n
ans = ""
while True:
x = n_rem % 26
if x == 0:
x = 26
ans += chars[x]
n_rem -= x
if n_rem == 0:
break
n_rem //= 26
print(ans[::-1]) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
N=int(input())-1
L=[]
S=[]
A=[chr(i) for i in range(97,123)]
X=""
while N>=0:
if N==0:
L.append(N%26)
N=N//26
break
elif N!=0:
L.append(N%26)
N=N//26-1
S=reversed(L)
for i in range(len(L)):
X+=A[L[i]]
print(str(X)) | N=int(input())-1
L=[]
S=[]
A=[chr(i) for i in range(97,123)]
X=""
while N>=0:
if N==0:
L.append(N%26)
N=N//26
break
elif N!=0:
L.append(N%26)
N=N//26-1
S=list(reversed(L))
for i in range(len(S)):
X+=A[S[i]]
print(str(X))
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 677, 12, 206, 206, 206, 51, 22], ["+", 0, 1, 0, 677, 12, 206, 206, 206, 51, 22]] | 5 | 116 |
#include <bits/stdc++.h>
#define SIS std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define lowbit(x) (x & -x)
typedef long long ll;
using namespace std;
const int MAX = 0x7ffffff;
int t;
// 求一个数的26进制的表示形式
string dict = "zabcdefghijklmnopqrstuvwxy";
void slove() {
ll n;
cin >> n;
string s;
while (n... | #include <bits/stdc++.h>
#define SIS std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define lowbit(x) (x & -x)
typedef long long ll;
using namespace std;
const int MAX = 0x7ffffff;
int t;
// 求一个数的26进制的表示形式
string dict = "abcdefghijklmnopqrstuvwxyz";
void slove() {
ll n;
cin >> n;
string s;
while (n... | [["-", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define ordered... |
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define ordered... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 914 |
#include <bits/stdc++.h>
using namespace std;
#define ll unsigned long long int
#define mod 1000000007
bool isPrime[1000001];
ll power(ll a, ll b) {
ll result = 1;
while (b > 0) {
if (b % 2) {
result = (a * result) % mod;
}
a = (a * a) % mod;
b = b / 2;
}
return result;
}
int gcd(int a, in... | #include <bits/stdc++.h>
using namespace std;
#define ll unsigned long long int
#define mod 1000000007
bool isPrime[1000001];
ll power(ll a, ll b) {
ll result = 1;
while (b > 0) {
if (b % 2) {
result = (a * result) % mod;
}
a = (a * a) % mod;
b = b / 2;
}
return result;
}
int gcd(int a, in... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 0, 52, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 310 |
N = int(input())
# 26進数に変換する問題
ans = ""
alphabet = "Xabcdefghijklmnopqlstuvwxyz"
while N > 0:
mod = N % 26
if mod == 0:
mod = 26
ans = alphabet[mod] + ans
N -= mod
N //= 26
print(ans)
| N = int(input())
# 26進数に変換する問題
ans = ""
alphabet = "Xabcdefghijklmnopqrstuvwxyz"
while N > 0:
mod = N % 26
if mod == 0:
mod = 26
ans = alphabet[mod] + ans
N -= mod
N //= 26
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 54 |
N=int(input())
N_26=[]
while N>=1:
N_mod=N%26
N=N//26
N_26.append(chr(96+N_mod))
print("".join(list(reversed(N_26)))) | N=int(input())
N_26=[]
while N>0:
N-=1
N_mod=N%26
N=N//26
N_26.append(chr(97+N_mod))
print("".join(list(reversed(N_26))))
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["-", 36, 36, 0, 656, 0, 52, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 0, 612], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 6... | 5 | 54 |
/*
In the name of Allah, Most Gracious, Most
Merciful
*/
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
//*** constant value ***
const long double PI = 3.141592653589793238;
const double EPS = 1e-6;
//*** constant value ***
//****** define ********
#define IOS... | /*
In the name of Allah, Most Gracious, Most
Merciful
*/
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
//*** constant value ***
const long double PI = 3.141592653589793238;
const double EPS = 1e-6;
//*** constant value ***
//****** define ********
#define IOS... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 33], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13]] | 1 | 210 |
#include <bits/stdc++.h>
// #include<iostream>
// #include<vector>
// #include<cmath>
// #include<iomanip>
using namespace std;
const double PI = acos(-1.0);
int gcd_func(int a, int b) { return b ? gcd_func(b, a % b) : a; }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// freopen("i... | #include <bits/stdc++.h>
// #include<iostream>
// #include<vector>
// #include<cmath>
// #include<iomanip>
using namespace std;
const double PI = acos(-1.0);
int gcd_func(int a, int b) { return b ? gcd_func(b, a % b) : a; }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// freopen("i... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 12, 16, 31, 74, 51, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 74, 51, 23, 0, 16, 12, 13]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<string> vs;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<string> vs;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define ... | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 224 |
n = gets.to_i
alpha = ('a'..'z').to_a
name = []
while n / 26 >= 0
name << alpha[(n % 26)-1]
break if n / 26 == 0
n /= 26
end
puts name.reverse.join | n = gets.to_i
alpha = ('a'..'z').to_a
name = []
while n / 26 >= 0
n -= 1
name << alpha[(n % 26)]
break if n / 26 == 0
n /= 26
end
puts name.reverse.join | [["+", 0, 493, 0, 89, 8, 170, 0, 755, 31, 22], ["+", 0, 493, 0, 89, 8, 170, 0, 755, 17, 110], ["+", 0, 493, 0, 89, 8, 170, 0, 755, 12, 612], ["-", 8, 170, 0, 738, 12, 742, 0, 738, 17, 33], ["-", 8, 170, 0, 738, 12, 742, 0, 738, 12, 612]] | 4 | 57 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
const ll mod = 1000000007;
const ll INF = 1e+14;
#define rep(i, n) for (int i = 0; i < n; i++)
#define per(i, n) for (int i = n - 1; i >= 0; i--)
#define Rep(i, sta, n) for (int i = sta; i < n; i++)
#de... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
const ll mod = 1000000007;
const ll INF = 1e+14;
#define rep(i, n) for (int i = 0; i < n; i++)
#define per(i, n) for (int i = n - 1; i >= 0; i--)
#define Rep(i, sta, n) for (int i = sta; i < n; i++)
#de... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 514 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef pair<int, int> pi;
typedef pair<long long, long long> pl;
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#defi... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef pair<int, int> pi;
typedef pair<long long, long long> pl;
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#defi... | [["-", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["-", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22]] | 1 | 277 |
a_list = [chr(ord('a') + i) for i in range(26)]
n = int(input())
l_list = []
ans = ''
while n > 0:
if n % 26 == 0:
l_list.append(25)
n = n // 26 - 1
else:
l_list.append(n%26)
n = n // 26
l_list = l_list[::-1]
for i in l_list:
ans += a_list[i]
print(ans) | a_list = [chr(ord('a') + i) for i in range(26)]
n = int(input())
l_list = []
ans = ''
while n > 0:
if n % 26 == 0:
l_list.append(26)
n = n // 26 - 1
else:
l_list.append(n%26)
n = n // 26
l_list = l_list[::-1]
for i in l_list:
ans += a_list[i-1]
print(ans) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 0, 1, 0, 677, 12, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 677, 12, 206, 206, 657, 12, 612]] | 5 | 102 |
import sys , math
from bisect import bisect
N=int(input())
alp="abcdefghijklmnopqrstuvwxyz"
R=[]
i=1
tot = 0
while tot < 1000000000000001:
tar = 26**i
tot+=tar
R.append(tot+1)
i+=1
keta = bisect(R , N)+1
if keta == 1:
print(alp[N])
sys.exit()
ans = ""
M = N - R[keta - 1]
for i in range(keta):... | import sys , math
from bisect import bisect
N=int(input())
alp="abcdefghijklmnopqrstuvwxyz"
R=[]
i=1
tot = 0
while tot < 1000000000000001:
tar = 26**i
tot+=tar
R.append(tot+1)
i+=1
keta = bisect(R , N)+1
if keta == 1:
print(alp[N-1])
sys.exit()
ans = ""
M = N - R[keta - 1]
for i in range(keta... | [["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]] | 5 | 139 |
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif
void init() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
void solve() {
long long n;
scanf("%lld", &n);
string s;
while (n) {
s.push_... | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif
void init() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
void solve() {
long long n;
scanf("%lld", &n);
string s;
while (n) {
--n;
... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 154 |
A = int(input())
az = 'zabcdefghijklmnopqrstuvwxy'
ans = ''
while (A):
A -= 1
ans = az[A % 26] + ans
A = A // 26
print(ans) | A = int(input())
az = 'zabcdefghijklmnopqrstuvwxy'
ans = ''
abc = 'abcdefghijklmnopqrstuvwxyz'
while (A):
A -= 1
ans = abc[A % 26] + ans
A = A // 26
print(ans) | [["+", 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, 557, 0, 654], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 655], ["-", 0, 1, 0, 662, 12, 657, 31, 206, 51, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 206, 51, 22]] | 5 | 44 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
char change(ll x) {
if (x == 0)
return 'z';
if (x == 1)
return 'a';
if (x == 2)
return 'b';
if (x == 3)
return 'c';
if (x == 4)
return 'd';
if (x == 5)
return 'e'... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
char change(ll x) {
if (x == 0)
return 'z';
if (x == 1)
return 'a';
if (x == 2)
return 'b';
if (x == 3)
return 'c';
if (x == 4)
return 'd';
if (x == 5)
return 'e'... | [["-", 0, 14, 8, 9, 0, 1, 0, 27, 28, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 27, 17, 68], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 492 |
#include <stdio.h>
int main() {
long int n;
int i, j;
char c[100];
scanf("%ld", &n);
for (i = 0; n >= 0; i++) {
n--;
c[i] += 'a' + n % 26;
n = n / 26;
}
for (j = i - 1; j >= 0; j--) {
printf("%c", &c[j]);
}
return 0;
} | #include <stdio.h>
int main() {
long int n;
int i, j;
char c[100];
scanf("%ld", &n);
for (i = 0; n > 0; i++) {
n--;
c[i] = 'a' + n % 26;
n = n / 26;
}
for (j = i - 1; j >= 0; j--) {
printf("%c", c[j]);
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 103 |
n=int(input())
ans = ''
while n>0:
n = n-1
s += chr(ord('a') + (n)% 26)
n//=26
ans = ans[::-1]
print(ans) | n=int(input())
ans = ''
while n>0:
n = n-1
ans += chr(ord('a') + (n)% 26)
n//=26
ans = ans[::-1]
print(ans) | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22]] | 5 | 55 |
#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = 1; i <= (n); ++i)
#define drep(i, n) for (ll i = (n)-1; i >= 0; --i)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
#define maxs(x, y) x = max(x, y)
#define mins(x... | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = 1; i <= (n); ++i)
#define drep(i, n) for (ll i = (n)-1; i >= 0; --i)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
#define maxs(x, y) x = max(x, y)
#define mins(x... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22]] | 1 | 316 |
n=int(input())
s = ''
for i in range(11):
if N != 0:
n -= 1
s += chr(ord('a') + N % 26)
n //= 26
print(s[::-1]) | n=int(input())
s = ''
for i in range(11):
if n != 0:
n -= 1
s += chr(ord('a') + n % 26)
n //= 26
print(s[::-1]) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 12, 652, 3, 4, 0, 657, 12, 657, 31, 22], ["+", 12, 652, 3, 4, 0, 657, 12, 657, 31, 22]] | 5 | 56 |
N = int(input())
alp = "abcdefghijklmnopqrstuvwxyz"
answer = ""
while N != 0:
index = N % 26
answer += alp[index]
N = N // 26
print(answer[::-1])
| N = int(input())
alp = "abcdefghijklmnopqrstuvwxyz"
answer = ""
while N != 0:
N -= 1
index = N % 26
answer += alp[index]
N = N // 26
print(answer[::-1])
| [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 48 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
typedef long long ll;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
typedef long long ll;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 11, 12, 23, 0, 16, 31, 16, 17, 33], ["-", 0, 11, 12, 23, 0, 16, 31, 16, 12, 13]] | 1 | 628 |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
long long N;
cin >> N;
string ans;
while (N > 0) {
N--;
ans += "a" + N % 26;
N /= 26;
}
reverse(ans.begin(), ans.end());
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
long long N;
cin >> N;
string ans;
while (N > 0) {
N--;
ans += 'a' + N % 26;
N /= 26;
}
reverse(ans.begin(), ans.end());
cout << ans << endl;
return 0;
} | [["-", 0, 1, 0, 11, 12, 16, 31, 5, 0, 62], ["+", 0, 1, 0, 11, 12, 16, 31, 103, 0, 104]] | 1 | 76 |
N = int(input())
alpha = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
ans = ''
while N > 0:
N-=1
index = N%1
ans = alpha[index] + ans
N = N // 26
print(ans) | N = int(input())
alpha = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
ans = ''
while N > 0:
N-=1
index = N%26
ans = alpha[index] + ans
N = N // 26
print(ans) | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 149 |
#include <iostream>
#include <string>
typedef long long ll;
std::string alphabet = "zabcdefghijklmnopqrstuvwxy";
ll N;
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(NULL);
std::cout.tie(NULL);
std::cin >> N;
std::string ans = "";
while (N) {
ans = alphabet[N % 26] + ans;
N /= ... | #include <iostream>
#include <string>
typedef long long ll;
std::string alphabet = "abcdefghijklmnopqrstuvwxyz";
ll N;
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(NULL);
std::cout.tie(NULL);
std::cin >> N;
std::string ans = "";
while (N) {
N--;
ans = alphabet[N % 26] + ans;
... | [["-", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std::literals::string_literals;
using i64 = std::int_fast64_t;
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
template <typename T> std::vector<T> make_v(size_t a) {
return std::vector<T>(a);
}
template <typename T, typename... Ts> auto make_v(size_t a, T... | #include <bits/stdc++.h>
using namespace std::literals::string_literals;
using i64 = std::int_fast64_t;
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
template <typename T> std::vector<T> make_v(size_t a) {
return std::vector<T>(a);
}
template <typename T, typename... Ts> auto make_v(size_t a, T... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 17, 33], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13]] | 1 | 201 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vc = vector<char>;
using vvll = vector<vll>;
using vvi = vector<vi>;
using vvc = vector<vc>;
using vb = vector<bool>;
using vvb = vector<vb>;
using pii = pair<int, int>;
using vpii = vector<pii>;
us... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vc = vector<char>;
using vvll = vector<vll>;
using vvi = vector<vi>;
using vvc = vector<vc>;
using vb = vector<bool>;
using vvb = vector<vb>;
using pii = pair<int, int>;
using vpii = vector<pii>;
us... | [["-", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13]] | 1 | 292 |
n = int(input())
ans = ''
while n:
ans += chr(ord('a') + n % 26 - 1)
n //= 26
print(ans[::-1]) | n = int(input())
ans = ''
while n:
n -= 1
ans += chr(ord('a') + n % 26)
n //= 26
print(ans[::-1]) | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 0, 677, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 677, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 45 |
#include <bits/stdc++.h>
using namespace std;
#define INF (1 << 30)
#define EPS 1e-10
#define MOD 1000000007
#define rep(i, n) FOR(i, 0, n)
#define FOR(i, x, n) for (int i = (x); i < (n); ++i)
#define all(v) (v).begin(), (v).end()
using ll = long long;
template <class T> void chmax(T &a, T b) { a > b ?: a = b; }
t... | #include <bits/stdc++.h>
using namespace std;
#define INF (1 << 30)
#define EPS 1e-10
#define MOD 1000000007
#define rep(i, n) FOR(i, 0, n)
#define FOR(i, x, n) for (int i = (x); i < (n); ++i)
#define all(v) (v).begin(), (v).end()
using ll = long long;
template <class T> void chmax(T &a, T b) { a > b ?: a = b; }
t... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 156 |
n = int(input())
abc = 'abcdefghijklmnopqrstuvwxyz'
ans = ''
while n:
n, m = divmod(n, 26)
ans = abc[m-1] + ans
print(ans) | n = int(input())
abc = 'abcdefghijklmnopqrstuvwxyz'
ans = ''
while n:
n -= 1
n, m = divmod(n, 26)
ans = abc[m] + ans
print(ans) | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 8, 196, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 662, 12, 657, 31, 206, 206, 657, 17, 33], ["-", 0, 662, 12, 657, 31, 206, 206, 657, 12, 612]] | 5 | 44 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
int k = 26;
string s = "";
int i = 0;
while (n) {
n--;
s += (char)('a' + n);
n /= 26;
}
... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
int k = 26;
string s = "";
int i = 0;
while (n) {
n--;
s += (char)('a' + n % 26);
n /= 26;
... | [["+", 12, 74, 51, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 74, 51, 23, 0, 16, 12, 16, 12, 13]] | 1 | 106 |
N = int(input())
ls = []
while N > 0:
a = N % 26
N //= 26
ls.append(a+96)
print("".join(map(chr, reversed(ls))))
| N = int(input())
ls = []
while N > 0:
N -= 1
a = N % 26
N //= 26
ls.append(a+97)
print("".join(map(chr, reversed(ls))))
| [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
string res;
// N--;
while (N > 0) {
int t = N / 26;
res += ('a' + (N - 1) % 26);
N = N / 26;
}
reverse(res.begin(), res.end());
cout << res << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
string res;
// N--;
while (N > 0) {
int t = N / 26;
res += ('a' + (N - 1) % 26);
N = (N - 1) / 26;
}
reverse(res.begin(), res.end());
cout << res << endl;
return 0;
} | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 1 | 85 |
#include <bits/stdc++.h>
#define ll long long int
#define yorn(f) cout << ((f) ? "Yes" : "No") << endl;
#define YORN(f) cout << ((f) ? "YES" : "NO") << endl;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, n) for (int i = 1; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define put(x) co... | #include <bits/stdc++.h>
#define ll long long int
#define yorn(f) cout << ((f) ? "Yes" : "No") << endl;
#define YORN(f) cout << ((f) ? "YES" : "NO") << endl;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, n) for (int i = 1; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define put(x) co... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 119 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <ctime>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <ctime>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 115 |
const main =
(input) => {
let n = BigInt(input.trim())
const alpha = 'zabcdefghijklmnopqrstuvwxyz'
let ans = []
while (n > 0n) {
const r = n % 26n
ans.unshift(alpha[`${r}`])
n = (n - r) / 26n
}
return console.log(ans.join(''))
}
... | const main =
(input) => {
let n = BigInt(input.trim())
const alpha = 'zabcdefghijklmnopqrstuvwxyz'
let ans = []
while (n > 0n) {
const r = n % 26n || 26n
ans.unshift(alpha[`${r}`])
n = (n - r) / 26n
}
return console.log(ans.join(''))
}
... | [["+", 8, 556, 0, 570, 0, 200, 51, 16, 17, 106], ["+", 8, 556, 0, 570, 0, 200, 51, 16, 12, 555]] | 2 | 143 |
#include <iostream>
#include <stack>
using namespace std;
char rec[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
void decTo26(long long dec, stack<char> q) {
long long temp = dec;
while (temp)... | #include <iostream>
#include <stack>
using namespace std;
char rec[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
void decTo26(long long dec, stack<char> q) {
long long temp = dec;
while (temp)... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 49, 50, 51, 69, 341, 342, 0, 16, 17, 33], ["-", 49, 50, 51, 69, 341, 342, 0, 16, 12, 13]] | 1 | 232 |
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
ll n, i, j, k, c = 1, x = 1, t;
cin >> n;
string s;
while (n != 0) {
t = n % 26;
if (t == 0)
s += 'z';
else {
s += char(96 + t);
}
n /= 26;
}
reverse(s.begin(), s.end());
cout << s;
}
| #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
ll n, i, j, k, c = 1, x = 1, t;
cin >> n;
string s;
while (n != 0) {
t = n % 26;
n--;
// cout<<t<<endl;
if (t == 0)
s += 'z';
else {
s += char(96 + t);
}
n /= 26;
}
reverse(s.begin(), s.e... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 104 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
long long int n = 0;
cin >> n;
long long int ans = 0;
int i = 0;
int amari = 0;
vector<int> dog;
while (n > 0) {
if (n % 26 == 0) {
amari = n % 26;
dog.push_back(amari);
n /= 26;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
long long int n = 0;
cin >> n;
long long int ans = 0;
int i = 0;
int amari = 0;
vector<int> dog;
while (n > 0) {
if (n % 26 == 0) {
amari = n % 26;
dog.push_back(amari);
n /= 26;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35]] | 1 | 187 |
#include <bits/stdc++.h>
#define lli long long int
#define pb(a) push_back(a)
#define forr(a, n) for (lli i = a; i < n; i++)
#define forrr(j, a, n) for (lli j = a; j < n; j++)
#define all(x) x.begin(), x.end()
#define mp make_pair
#define ff first
#define ss second
#define pi2 1.57079632679489661923
using namespace st... | #include <bits/stdc++.h>
#define lli long long int
#define pb(a) push_back(a)
#define forr(a, n) for (lli i = a; i < n; i++)
#define forrr(j, a, n) for (lli j = a; j < n; j++)
#define all(x) x.begin(), x.end()
#define mp make_pair
#define ff first
#define ss second
#define pi2 1.57079632679489661923
using namespace st... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 49, 50, 51, 16, 12, 23, 0, 16, 17, 33], ["-", 49, 50, 51, 16, 12, 23, 0, 16, 12, 13]] | 1 | 501 |
//#include <fsociety>
#include <algorithm>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <unordered_set... | //#include <fsociety>
#include <algorithm>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <unordered_set... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 1 | 197 |
//#include <fsociety>
#include <algorithm>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <unordered_set... | //#include <fsociety>
#include <algorithm>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <unordered_set... | [["-", 0, 1, 0, 11, 12, 16, 31, 103, 0, 125], ["+", 0, 1, 0, 11, 12, 16, 31, 103, 0, 125]] | 1 | 138 |
#include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | #include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 110], ["+", 0, ... | 1 | 186 |
n = int(input())
tmp = 0
for ll in range(1,15):
tmp+=26**ll
if n <= tmp:
break
ans = ""
for l in range(1,ll+1):
n-=1
ans+=chr(n%26+ord('a'))
n //= 26**l
print(ans[::-1])
| n = int(input())
tmp = 0
for ll in range(1,15):
tmp+=26**ll
if n <= tmp:
break
ans = ""
for l in range(1,ll+1):
n-=1
ans+=chr(n%26+ord('a'))
n //= 26
print(ans[::-1])
| [["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 578], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 12, 22]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll n;
int main() {
cin >> n;
string ans = "";
while (n > 0) {
ans = char((n - 1) % 26 + 'a') + ans;
n /= 26;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll n;
int main() {
cin >> n;
string ans = "";
while (n > 0) {
n--;
ans = char((n) % 26 + 'a') + ans;
n /= 26;
}
cout << ans << endl;
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 13]] | 1 | 65 |
n = int(input())
alp = 'zabcdefghijklmnopqrstuvwxy'
name = []
while n > 0:
n -= 1
name.append(alp[n % 26])
n //= 26
name.reverse()
print(*name,sep='') | n = int(input())
alp = 'abcdefghijklmnopqrstuvwxyz'
name = []
while n > 0:
n -= 1
name.append(alp[n % 26])
n //= 26
name.reverse()
print(*name,sep='') | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 54 |
#include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <deque>
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <map>
#include <queue>
#include <string>
#include <vector>
u... | #include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <deque>
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <map>
#include <queue>
#include <string>
#include <vector>
u... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 152 |
#include <bits/stdc++.h>
#define vc vector<int>
#define um unordered_map<int, int>
#define ll long long
#define rep(i, a, b) for (__typeof(a) i = a; i < b; i++)
#define si(a) a.size()
#define all(a) a.begin(), a.end()
#define ss(a) a.second
#define ff(a) a.first
#define M 1000000
#define pb push_back
#define repit(i, a... | #include <bits/stdc++.h>
#define vc vector<int>
#define um unordered_map<int, int>
#define ll long long
#define rep(i, a, b) for (__typeof(a) i = a; i < b; i++)
#define si(a) a.size()
#define all(a) a.begin(), a.end()
#define ss(a) a.second
#define ff(a) a.first
#define M 1000000
#define pb push_back
#define repit(i, a... | [["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 13]] | 1 | 380 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
long long n, x;
cin >> n;
x = n;
string name;
while (n > 0) {
name += 'a' + (n -... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
long long n, x;
cin >> n;
x = n;
string name;
while (n > 0) {
name += 'a' + (n -... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 1 | 105 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
string ans;
while (n) {
ans += 'a' + n % 26;
n /= 26;
}
reverse(ans.begin(), ans.end());
cout << ans << endl;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
string ans;
while (n) {
n--;
ans += 'a' + n % 26;
n /= 26;
}
reverse(ans.begin(), ans.end());
cout << ans << endl;
} | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 77 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define N 0
#define INF 0x3f3f3f3f
#define LL long long
#define mz(x) ms(x, 0)
#define ms(x, y) memset(x,... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define N 0
#define INF 0x3f3f3f3f
#define LL long long
#define mz(x) ms(x, 0)
#define ms(x, y) memset(x,... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["-", 0, 52, 8, 9, 0, 57, 64, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 17, 68]] | 1 | 176 |
n = int(input())
char = list("zabcdefghijklmnopqrstuvwxy")
name = ""
while n > 0:
name = char[n % 26] + name
n = n // 26
print(name) | n = int(input())
char = list("abcdefghijklmnopqrstuvwxyz")
name = ""
while n > 0:
n -= 1
name = char[n % 26] + name
n = n // 26
print(name) | [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 44 |
//
// Created by 10034 on 2020/7/29.
//
#include <iostream>
#include <vector>
using namespace std;
vector<int> v;
int main() {
long long n;
cin >> n;
// while(n){
// v.push_back((n-1)%26);
// n--;
// n/=26;
// }
while (n) {
int t = n % 26;
if (t == 0) {
v.push_... | //
// Created by 10034 on 2020/7/29.
//
#include <iostream>
#include <vector>
using namespace std;
vector<int> v;
int main() {
long long n;
cin >> n;
// while(n){
// v.push_back((n-1)%26);
// n--;
// n/=26;
// }
while (n) {
int t = n % 26;
if (t == 0) {
v.push_... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 122 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
StringBuilder sb = new StringBuilder();
while (true) {
sb.insert(0, (char)('a' + n % 26));
n /= 26;
if (n == 0) {
break;
}
}... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
StringBuilder sb = new StringBuilder();
while (true) {
n--;
sb.insert(0, (char)('a' + n % 26));
n /= 26;
if (n == 0) {
break;
... | [["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 68], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 3 | 108 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.