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 |
|---|---|---|---|---|
k = int(input())
s = input()
if( len(s) <= k):
print(s)
else:
res = s[0:7] + "..."
print(res) | k = int(input())
s = input()
if( len(s) <= k):
print(s)
else:
res = s[0:k] + "..."
print(res) | [["-", 0, 662, 12, 657, 31, 206, 206, 663, 0, 612], ["+", 0, 662, 12, 657, 31, 206, 206, 663, 0, 22]] | 5 | 45 |
k = gets.chomp.to_i
s = gets.chomp
if s.length >= k
puts s[0...k] + '...'
else
puts s
end
| k = gets.chomp.to_i
s = gets.chomp
if s.length > k
puts s[0...k] + '...'
else
puts s
end
| [["-", 36, 36, 0, 493, 0, 121, 15, 738, 17, 20], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 47]] | 4 | 33 |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if (s.length() < k)
System.out.println(s);
else {
String x = "";
for (int i = 0; i < k; i++)
x += s.charAt(i);
... | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if (s.length() <= k)
System.out.println(s);
else {
String x = "";
for (int i = 0; i < k; i++)
x += s.charAt(i);
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string k;
int a;
cin >> a >> k;
if (k.size() < a)
cout << k << endl;
else {
for (int i = 0; i < a; i++)
cout << k[i];
cout << "..." << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string k;
int a;
cin >> a >> k;
if (k.size() <= a)
cout << k << endl;
else {
for (int i = 0; i < a; i++)
cout << k[i];
cout << "..." << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 72 |
//
//
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define is_in(i, s) (s.find(i) != s.end())
#define all(x) (x).begin(), (x).end()
#define outl(x) cout << x << endl
#define outsp(x) cout << x << " "
typedef long long ll;
typedef pair<int, int> P;
#define MAX_N 100... | //
//
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define is_in(i, s) (s.find(i) != s.end())
#define all(x) (x).begin(), (x).end()
#define outl(x) cout << x << endl
#define outsp(x) cout << x << " "
typedef long long ll;
typedef pair<int, int> P;
#define MAX_N 100... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 118 |
K=int(input())
S=str(input())
if K<=len(S):
print(S[:K]+"...")
else:
print(S) | K=int(input())
S=str(input())
if K<len(S):
print(S[:K]+"...")
else:
print(S) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]] | 5 | 42 |
package main
import (
"bufio"
"fmt"
"io"
"log"
"os"
"strconv"
)
func main() {
k := readInt()
s := readString()
if len(s) < k {
fmt.Println(s)
} else {
fmt.Println(s[:k] + "...")
}
}
var (
readString func() string
readBytes func() []byte
)
func init() {
log.SetFlags(log.Lshortfile)
readString, r... | package main
import (
"bufio"
"fmt"
"io"
"log"
"os"
"strconv"
)
func main() {
k := readInt()
s := readString()
if len(s) <= k {
fmt.Println(s)
} else {
fmt.Println(s[:k] + "...")
}
}
var (
readString func() string
readBytes func() []byte
)
func init() {
log.SetFlags(log.Lshortfile)
readString, ... | [["-", 0, 435, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 17, 19]] | 7 | 566 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define db double
#define pb push_back
#define nl '\n'
#define X first
#define Y second
#define nimble \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define db double
#define pb push_back
#define nl '\n'
#define X first
#define Y second
#define nimble \
ios::sync_with_stdio(0); ... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 17, 107], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 6]] | 1 | 306 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define ALL(A) A.begin(), A.end()
int main() {
int K;
cin >> K;
string S;
cin >> S;
if (S.size() <= K)
cout << S << endl;
else {
for (int i = 0; i < 7; i++) {
cout << S[i];
}
cout << "..." << endl;
}
return ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define ALL(A) A.begin(), A.end()
int main() {
int K;
cin >> K;
string S;
cin >> S;
if (S.size() <= K)
cout << S << endl;
else {
for (int i = 0; i < K; i++) {
cout << S[i];
}
cout << "..." << endl;
}
return ... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 12, 22]] | 1 | 91 |
#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;
using u128 = __uint128_t;
#define int long long
#define idxSet \
tree<int, null_type, less_equal<in... | #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;
using u128 = __uint128_t;
#define int long long
#define idxSet \
tree<int, null_type, less_equal<in... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 184 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iomanip>
#define ll long long
#include <unordered_map>
using namespace std;
int main() {
ll K;
string S;
cin >> K >> S;
if (S.size() <= K)
cout << S << endl;
else {
for (ll i = 0; i < K; i++)
cout << S.at(i);
for (ll i = 0; i < 2; i++)... | #include <algorithm>
#include <bits/stdc++.h>
#include <iomanip>
#define ll long long
#include <unordered_map>
using namespace std;
int main() {
ll K;
string S;
cin >> K >> S;
if (S.size() <= K)
cout << S << endl;
else {
for (ll i = 0; i < K; i++)
cout << S.at(i);
for (ll i = 0; i < 3; i++)... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13]] | 1 | 95 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vec... | #include <algorithm>
#include <array>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vec... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 324 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main() {
int K;
string S;
cin >> K >> S;
if (K... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main() {
int K;
string S;
cin >> K >> S;
if (K... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 110 |
K=int(input())
S=input()
if len(S) >=K:
res=S[:K]
res+="..."
print(res)
else:
print(S) | K=int(input())
S=input()
if len(S) >K:
res=S[:K]
res+="..."
print(res)
else:
print(S) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 43 |
from sys import stdin
import math
import fractions
from collections import deque
from collections import Counter
import itertools
readline = stdin.buffer.readline
INF = 10 ** 10
K = int(readline())
S = str(input())
if len(S) < K:
print(S)
else:
tmp = "".join([c for c in S[:K]])
print(tmp + "...")
| from sys import stdin
import math
import fractions
from collections import deque
from collections import Counter
import itertools
readline = stdin.buffer.readline
INF = 10 ** 10
K = int(readline())
S = str(input())
if len(S) <= K:
print(S)
else:
tmp = "".join([c for c in S[:K]])
print(tmp + "...")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 87 |
K=int(input())
S=input()
if K < len(S):
print(S[0:K] + '...') | K=int(input())
S=input()
if K < len(S):
print(S[0:K] + '...')
else:
print(S) | [["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 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 | 34 |
<?php
$K = (int)fgets(STDIN);
$S = fgets(STDIN);
if (strlen($S) <= $K) {
echo $S;
return;
}
echo substr($S, 0, $K) . '...'; | <?php
$K = (int)fgets(STDIN);
$S = trim(fgets(STDIN));
if (strlen($S) <= $K) {
echo $S;
return;
}
echo substr($S, 0, $K) . '...'; | [["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 25]] | 6 | 55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K;
string S;
cin >> K >> S;
if (S.size() < K) {
cout << S << endl;
} else {
for (int i = 0; i < K; i++) {
cout << S[i];
}
cout << "..." << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
string S;
cin >> K >> S;
if (S.size() <= K) {
cout << S << endl;
} else {
for (int i = 0; i < K; i++) {
cout << S[i];
}
cout << "..." << endl;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 76 |
#include <bits/stdc++.h>
#pragma GCC optimize("O2")
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define all(c) c.begin(), c.end()
#define endl "\n"
#define sz(u) (int)(u.size())
#define L(x) (2 * x)
#define R(x) (2 * x + 1)
#define M(x, y) ((x + y) / 2)
typedef long long ll;
typedef unsig... | #include <bits/stdc++.h>
#pragma GCC optimize("O2")
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define all(c) c.begin(), c.end()
#define endl "\n"
#define sz(u) (int)(u.size())
#define L(x) (2 * x)
#define R(x) (2 * x + 1)
#define M(x, y) ((x + y) / 2)
typedef long long ll;
typedef unsig... | [["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 159 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
typedef vector<ll> vi;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
typedef vector<ll> vi;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 94]] | 1 | 259 |
#!/usr/bin/env python3
import sys
import collections
sys.setrecursionlimit(10 ** 7)
# 1 ✕ 1 (int)
K = int(input().rstrip())
# 1 ✕ 1 (str)
S = input().rstrip()
if len(S) >= K:
print(S[:K] + "...")
else:
print(S)
| #!/usr/bin/env python3
import sys
import collections
sys.setrecursionlimit(10 ** 7)
# 1 ✕ 1 (int)
K = int(input().rstrip())
# 1 ✕ 1 (str)
S = input().rstrip()
if len(S) > K:
print(S[:K] + "...")
else:
print(S)
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 62 |
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <stdio.h>
#include <vector>
using namespace std;
typedef long long int lli;
const long long int MaxN = 1000105;
const lli mod = 1e9 + 7;
#define fst first
#define snd second
#define mp make_pair
const float pi = 3.14159265358979323846264338... | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <stdio.h>
#include <vector>
using namespace std;
typedef long long int lli;
const long long int MaxN = 1000105;
const lli mod = 1e9 + 7;
#define fst first
#define snd second
#define mp make_pair
const float pi = 3.14159265358979323846264338... | [["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 22]] | 1 | 149 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K;
string S;
cin >> K >> S;
if (S.size() < K) {
cout << S << endl;
} else {
cout << S.substr(0, K) << "..." << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
string S;
cin >> K >> S;
if (S.size() <= K) {
cout << S << endl;
} else {
cout << S.substr(0, K) << "..." << endl;
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 65 |
#include <bits/stdc++.h>
#include <cstdio>
using namespace std;
typedef long long int ll;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;... | #include <bits/stdc++.h>
#include <cstdio>
using namespace std;
typedef long long int ll;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;... | [["-", 0, 57, 64, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 7, 15, 16, 12, 22]] | 1 | 163 |
#include <algorithm> // std::unique
#include <cmath>
#include <iostream>
#include <limits.h>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
constexpr auto PrimeBigNum10_9_7 = 1000000007;
// 素数判定
template <typename T> bool IsPrimeNumber(T value) {... | #include <algorithm> // std::unique
#include <cmath>
#include <iostream>
#include <limits.h>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
constexpr auto PrimeBigNum10_9_7 = 1000000007;
// 素数判定
template <typename T> bool IsPrimeNumber(T value) {... | [["-", 0, 11, 12, 16, 31, 2, 3, 4, 0, 13], ["+", 0, 11, 12, 16, 31, 2, 3, 4, 0, 22]] | 1 | 383 |
def main(K, S):
if len(S) >= K:
answer = S[:K] + '...'
else:
answer = S
print(answer)
if __name__ == '__main__':
K = int(input())
S = input()
main(K, S)
| def main(K, S):
if len(S) > K:
answer = S[:K] + '...'
else:
answer = S
print(answer)
if __name__ == '__main__':
K = int(input())
S = input()
main(K, S) | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 62 |
import math
K = int(input())
S = str(input())
nagasa = len(S)
P = '...'
if nagasa < K:
print(S)
else:
S = S[0:K]+P
print(S)
| import math
K = int(input())
S = str(input())
nagasa = len(S)
P = '...'
if nagasa <= K:
print(S)
else:
S = S[0:K]+P
print(S) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 54 |
import numpy as np
import sys
import math
K = int(input())
S = input()
if len(S) <= K :
print(S)
else:
print(S+"...") | import numpy as np
import sys
import math
K = int(input())
S = input()
if len(S) <= K :
print(S)
else:
print(S[:K]+"...") | [["+", 0, 652, 3, 4, 0, 657, 31, 206, 0, 70], ["+", 3, 4, 0, 657, 31, 206, 206, 663, 0, 102], ["+", 3, 4, 0, 657, 31, 206, 206, 663, 0, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 206, 0, 73]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 100000000;
const ll half_inf = 0x3f3f3f3f;
const ll inf = 0x7fffffff;
const ll mod = 998244353;
const ll maxn = 2000005;
string s;
int main() {
int n;
scanf("%d", &n);
cin >> s;
if (s.size() > n) {
for (int i = 0; i < s.size... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 100000000;
const ll half_inf = 0x3f3f3f3f;
const ll inf = 0x7fffffff;
const ll mod = 998244353;
const ll maxn = 2000005;
string s;
int main() {
int n;
scanf("%d", &n);
cin >> s;
if (s.size() > n) {
for (int i = 0; i < n; i++... | [["-", 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], ["+", 0, 57, 64, 9, 0, 7, 15, 16, 12, 22]] | 1 | 126 |
K=int(input())
S=list(input())
if len(S)<=K:
print(*S,sep="")
else:
kari=S[:K]
kari.append("…")
print(*kari,sep="") | K=int(input())
S=list(input())
if len(S)<=K:
print(*S,sep="")
else:
kari=S[:K]
kari.append("...")
print(*kari,sep="") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, n) for (ll i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(18);
string s, ans;
ll k;
cin >... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, n) for (ll i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(18);
string s, ans;
ll k;
cin >... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35]] | 1 | 116 |
k = int(input())
s = input()
if len(s) <= k:
print(S)
else:
t_s = s[:k] + "..."
print(t_s) | k = int(input())
s = input()
if len(s) <= k:
print(s)
else:
t_s = s[:k] + "..."
print(t_s) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 42 |
#include <bits/stdc++.h>
#define ll long long
#define rep(i, a, b) for (i = a; i < b; i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define vi vector<ll int>
#define CLR(a) memset((a), 0, sizeof(a))
#define mp make_pair
#define hell 1000000007
using namespace std;
#define... | #include <bits/stdc++.h>
#define ll long long
#define rep(i, a, b) for (i = a; i < b; i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define vi vector<ll int>
#define CLR(a) memset((a), 0, sizeof(a))
#define mp make_pair
#define hell 1000000007
using namespace std;
#define... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 1,308 |
#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<ll, ll> ii;
typedef vector<ll> vi;
typedef long double ld;
typedef tree<ll, null_type, less<ll>, rb_tree_tag,
tree_ord... | #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<ll, ll> ii;
typedef vector<ll> vi;
typedef long double ld;
typedef tree<ll, null_type, less<ll>, rb_tree_tag,
tree_ord... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 162 |
#include <bits/stdc++.h>
#define ff \
{ \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
#define ff \
{ \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 99 |
#include <iostream>
#include <stdio.h>
using namespace std;
main() {
string S;
int K;
cin >> K >> S;
if (K > S.size()) {
for (int i = 0; i < S.size(); i++)
printf("%c", S[i]);
} else {
for (int i = 0; i < K; i++)
printf("%c", S[i]);
printf("...");
}
} | #include <iostream>
#include <stdio.h>
using namespace std;
main() {
string S;
int K;
cin >> K >> S;
if (K >= S.size()) {
for (int i = 0; i < S.size(); i++)
printf("%c", S[i]);
} else {
for (int i = 0; i < K; i++)
printf("%c", S[i]);
printf("...");
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 103 |
#include <iostream>
#include <string>
using namespace std;
int K;
string S;
int main() {
cin >> K >> S;
if (S.size() <= K) {
cout << S << endl;
} else {
cout << S.substr(0, 7) << "..." << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int K;
string S;
int main() {
cin >> K >> S;
if (S.size() <= K) {
cout << S << endl;
} else {
cout << S.substr(0, K) << "..." << endl;
}
} | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 22]] | 1 | 64 |
#include <bits/stdc++.h>
using namespace std;
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define rep(i, n) repi(i, 0, n)
#define all(x) (x).begin(), (x).end()
inline void Main() {
// code
string s;
int k;
cin >> k >> s;
if (s.length() < k) {
cout << s << endl;
} else {
rep(i, k) {... | #include <bits/stdc++.h>
using namespace std;
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define rep(i, n) repi(i, 0, n)
#define all(x) (x).begin(), (x).end()
inline void Main() {
// code
string s;
int k;
cin >> k >> s;
if (s.length() <= k) {
cout << s << endl;
} else {
rep(i, k) ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 140 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <ctype.h>
#include <deque> // deque
#include <io... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <ctype.h>
#include <deque> // deque
#include <io... | [["-", 49, 50, 51, 16, 31, 2, 3, 4, 0, 13], ["+", 49, 50, 51, 16, 31, 2, 3, 4, 0, 22]] | 1 | 384 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define multitest 0
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define pqgreater(x) x, vector<x>, greater<x>
const ll mod = 998244353;
int solve();
int main() {
ios_base::sync_with_stdio(0), cin.tie(0... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define multitest 0
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define pqgreater(x) x, vector<x>, greater<x>
const ll mod = 998244353;
int solve();
int main() {
ios_base::sync_with_stdio(0), cin.tie(0... | [["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 162 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
int K, N;
cin >> K;
N = S.size();
if (N <= K) {
cout << S << endl;
} else {
for (int i = 0; i < K; i++) {
cout << S[i];
}
cout << "..." << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
int K, N;
cin >> K >> S;
N = S.size();
if (N <= K) {
cout << S << endl;
} else {
for (int i = 0; i < K; i++) {
cout << S[i];
}
cout << "..." << endl;
}
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 80 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
string s;
int k;
cin >> k >> s;
int n = s.size();
if (n <= k)
cout << s << endl;
else {
for (int i = 0; i < k; i++) {
cout << s[i];
}
}
cout << "..." << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
string s;
int k;
cin >> k >> s;
int n = (int)s.size();
if (n <= k)
cout << s << endl;
else {
for (int i = 0; i < k; i++) {
cout << s[i];
}
cout << "..." << endl;
}
return 0;
} | [["+", 8, 9, 0, 43, 49, 50, 51, 74, 0, 24], ["+", 0, 43, 49, 50, 51, 74, 39, 77, 39, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 74, 0, 25], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 89 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#incl... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#incl... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 1,551 |
/**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author tatsumack
*/
#include <fstream>
#include <iostream>
#include <bits/stdc++.h>
#define int long long
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define FOR(i, a, b) for (int i = (a), i##_len = (... | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author tatsumack
*/
#include <fstream>
#include <iostream>
#include <bits/stdc++.h>
#define int long long
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define FOR(i, a, b) for (int i = (a), i##_len = (... | [["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22]] | 1 | 218 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespac... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespac... | [["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 22]] | 1 | 230 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | [["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 151], ["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 357 |
#include <bits/stdc++.h>
using namespace std;
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<typename T> using gpp_set = tree<T, null_type, less<T>, rb_tree_tag,
tree_order_statistics_node_update>; template<typename T, typename L> using
gpp_map = tre... | #include <bits/stdc++.h>
using namespace std;
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<typename T> using gpp_set = tree<T, null_type, less<T>, rb_tree_tag,
tree_order_statistics_node_update>; template<typename T, typename L> using
gpp_map = tre... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 552 |
n=int(input())
st=input()
if n>=len(st):
print(st)
else:
print(st[0:n-1]+"...") | n=int(input())
st=input()
if n>=len(st):
print(st)
else:
print(st[0:n]+"...")
| [["-", 0, 657, 31, 206, 206, 663, 0, 657, 17, 33], ["-", 0, 657, 31, 206, 206, 663, 0, 657, 12, 612]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
typedef vector<int> vec;
//配列の添字ズレに注意
//=に注意
int main() {
int k, n;
string s;
cin >> k >> s;
n = s.length();
if (n <= k)
cout << s << endl;
else
rep(i, k) cout << s[i];
cout << "...";... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
typedef vector<int> vec;
//配列の添字ズレに注意
//=に注意
int main() {
int k, n;
string s;
cin >> k >> s;
n = s.length();
if (n <= k)
cout << s << endl;
else {
rep(i, k) cout << s[i];
cout << ".... | [["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int K;
string S;
cin >> K >> S;
if (S.size() < K) {
cout << S << endl;
} else {
for (int i = 0; i < K; ++i) {
cout << S.at(i);
}
cout << "...";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int K;
string S;
cin >> K >> S;
if (S.size() <= K) {
cout << S << endl;
} else {
for (int i = 0; i < K; ++i) {
cout << S.at(i);
}
cout << "...";
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 85 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
typedef long long... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
typedef long long... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 112 |
#include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
using namespace std;
const long long int INF = 1e18;
const long long int mod = 1e9 + 7;
typedef pair<ll, ll> pairs;
typedef vector<pairs> p;
struct Edge {
ll to, weight;
Edge(ll t, ll w) : to(t), weight(w) {}
};
using graph = vector<vector... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
using namespace std;
const long long int INF = 1e18;
const long long int mod = 1e9 + 7;
typedef pair<ll, ll> pairs;
typedef vector<pairs> p;
struct Edge {
ll to, weight;
Edge(ll t, ll w) : to(t), weight(w) {}
};
using graph = vector<vector... | [["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 9, 0, 1, 0, 16, 17, 151]] | 1 | 327 |
def main():
import sys
sys.setrecursionlimit(10**6)
input = sys.stdin.readline
K = int(input())
S = input().strip()
if len(S) <= K:
print(S)
else:
print(S[:7]+'...')
if __name__ == '__main__':
main() | def main():
import sys
sys.setrecursionlimit(10**6)
input = sys.stdin.readline
K = int(input())
S = input().strip()
if len(S) <= K:
print(S)
else:
print(S[:K]+'...')
if __name__ == '__main__':
main() | [["-", 3, 4, 0, 657, 31, 206, 206, 663, 0, 612], ["+", 3, 4, 0, 657, 31, 206, 206, 663, 0, 22]] | 5 | 75 |
N = int(input())
S = list(input())
s = len(S)
m = "..."
if s<N:
print(''.join(S))
else:
k = ''.join(S[:N])
print(k+m ) | N = int(input())
S = list(input())
s = len(S)
m = "..."
if s<=N:
print(''.join(S))
else:
k = ''.join(S[:N])
print(k+m )
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 63 |
K=int(input())
S=input()
if len(S)<=K:
print(S)
else:
print(S[:K],'...') | K=int(input())
S=input()
if len(S)<=K:
print(S)
else:
print(S[:K],'...',sep='') | [["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 39 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define sz(a) (int)a.size()
using namespace std;
in... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define sz(a) (int)a.size()
using namespace std;
in... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
string s;
cin >> s;
if (s.size() < n)
cout << s;
else
cout << s.substr(0, n) << "...";
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
string s;
cin >> s;
if (s.size() <= n)
cout << s;
else
cout << s.substr(0, n) << "...";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 70 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, a, b) for ((i... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, a, b) for ((i... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 215 |
def main():
K = int(input()) # 文字列または整数(一変数)
S = input()
if len(S) >= K:
S = S[0:K] + '...'
print(S)
if __name__ == '__main__':
main()
| def main():
K = int(input()) # 文字列または整数(一変数)
S = input()
if len(S) > K:
S = S[:K] + '...'
print(S)
if __name__ == '__main__':
main()
| [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47], ["-", 0, 662, 12, 657, 31, 206, 206, 663, 0, 612]] | 5 | 53 |
#include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)((x).size())
#define forn(i, n) for (int i = 0; i < n; i++)
#define forse(i, s, e) for (int i = s; i < e; i++)
#define pb push_back
#define pf push_front
#define rb pop_back
#define rf pop_front
#define mp make_pair
#define fi first
#define se second
#de... | #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)((x).size())
#define forn(i, n) for (int i = 0; i < n; i++)
#define forse(i, s, e) for (int i = s; i < e; i++)
#define pb push_back
#define pf push_front
#define rb pop_back
#define rf pop_front
#define mp make_pair
#define fi first
#define se second
#de... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 189 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define REP(i, n) for (int i = 0; i < n; i++)
#define ALL(a) (a).begin(), (a).end()
typedef vector<int> vi;
const int INF = 1LL << 60; // 10e18+10e17ちょっとくらい
const int MOD = 1000000007;
const int MAX_N = 200100;
signed main() {
/... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define REP(i, n) for (int i = 0; i < n; i++)
#define ALL(a) (a).begin(), (a).end()
typedef vector<int> vi;
const int INF = 1LL << 60; // 10e18+10e17ちょっとくらい
const int MOD = 1000000007;
const int MAX_N = 200100;
signed main() {
/... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 114 |
from math import radians
from heapq import heapify, heappush, heappop
import bisect
from math import pi
from collections import deque
from math import factorial
from math import log, ceil
from collections import defaultdict
from math import *
from sys import stdin, stdout
import itertools
import os
import sys
import t... |
from math import radians
from heapq import heapify, heappush, heappop
import bisect
from math import pi
from collections import deque
from math import factorial
from math import log, ceil
from collections import defaultdict
from math import *
from sys import stdin, stdout
import itertools
import os
import sys
import t... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 1,505 |
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define SORT(v) sort((v).begin(... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define SORT(v) sort((v).begin(... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 12, 22]] | 1 | 460 |
#include <algorithm>
#include <assert.h>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
// #define __DEBUG__
#if... | #include <algorithm>
#include <assert.h>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
// #define __DEBUG__
#if... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 204 |
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
#define INF 10000000000000
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i < (ll)(n); i++)
#define repN_1(i, n) for (ll i = 0; i < (ll)(n - 1); i++)
#define ... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
#define INF 10000000000000
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i < (ll)(n); i++)
#define repN_1(i, n) for (ll i = 0; i < (ll)(n - 1); i++)
#define ... | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 22]] | 1 | 204 |
#include <bits/stdc++.h>
using namespace std;
using lint = long long int;
int main() {
lint K;
string S;
cin >> K >> S;
if (S.length() < K) {
cout << S << endl;
} else {
cout << S.substr(0, K) << "..." << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
int main() {
lint K;
string S;
cin >> K >> S;
if (S.length() <= K) {
cout << S << endl;
} else {
cout << S.substr(0, K) << "..." << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 69 |
def main():
import sys
K=int(sys.stdin.readline())
S=sys.stdin.readline()
if len(S)<=K:
print(S)
else:
print(S[:K]+'...')
main() | def main():
import sys
K=int(sys.stdin.readline())
S=sys.stdin.readline().strip()
if len(S)<=K:
print(S)
else:
print(S[:K]+'...')
main() | [["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 57 |
def main():
k = int(input())
s = str(input())
if len(s) < k:
print(s)
else:
print("{}...".format(s[:k]))
if __name__ == '__main__':
main() | def main():
k = int(input())
s = str(input())
if len(s) <= k:
print(s)
else:
print("{}...".format(s[:k]))
if __name__ == '__main__':
main() | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int k;
cin >> s >> k;
if (s.size() <= k)
cout << s << endl;
else
cout << s.substr(0, k) + "..." << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int k;
cin >> k >> s;
if (s.size() <= k)
cout << s << endl;
else
cout << s.substr(0, k) + "..." << endl;
return 0;
} | [["-", 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 | 61 |
// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define REP(i, n) for (int i = 0; i < n; ++i)
#define range(i, a, b) ((a) <= (i) && (i) < (b))
#defi... | // #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define REP(i, n) for (int i = 0; i < n; ++i)
#define range(i, a, b) ((a) <= (i) && (i) < (b))
#defi... | [["+", 0, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 94], ["+", 0, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 603 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define zero_pad(num) setfill('0') << std::right << setw(num)
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;
int main() {
int k;
cin >> k;
string s;
cin >> s;
if (s.size() < k)
cout << s... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define zero_pad(num) setfill('0') << std::right << setw(num)
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;
int main() {
int k;
cin >> k;
string s;
cin >> s;
if (s.size() <= k)
cout << ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 102 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 270 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Pi = pair<int, int>;
using Pl = pair<ll, ll>;
using vint = vector<int>;
using vvint = vector<vint>;
using vvvint = vector<vvint>;
using vdouble = vector<double>;
using vvdouble = vector<vdouble>;
using vvvdouble = vector<vvdouble>;
using vll = v... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Pi = pair<int, int>;
using Pl = pair<ll, ll>;
using vint = vector<int>;
using vvint = vector<vint>;
using vvvint = vector<vvint>;
using vdouble = vector<double>;
using vvdouble = vector<vdouble>;
using vvvdouble = vector<vvdouble>;
using vll = v... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 695 |
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy
k = int(input())
s = input()
if len(s)<k:
print(s)
else:
ans = ""
for i in range(k):
ans += s[i]
ans += "..."
print(ans) | import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy
k = int(input())
s = input()
if len(s)<=k:
print(s)
else:
ans = ""
for i in range(k):
ans += s[i]
ans += "..."
print(ans) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 80 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String str = sc.next();
if (str.length() <= n) {
System.out.println(str);
} else {
System.out.println(str.substring(0, 7) + "...");
}
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String str = sc.next();
if (str.length() <= n) {
System.out.println(str);
} else {
System.out.println(str.substring(0, n) + "...");
}
... | [["-", 3, 4, 0, 16, 31, 492, 3, 4, 0, 499], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 22]] | 3 | 97 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define INF 1000000021
#define MOD 1000000007
#define pb push_back
#define sqr(a) (a) * (a)
#define M(a, b) make_pair(a, b)
#define F first
#define S second
#define all(x) (x.begin(), x.end())
#define deb(x) cerr << #x << " = " << x << '\n'
#define N 22... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define INF 1000000021
#define MOD 1000000007
#define pb push_back
#define sqr(a) (a) * (a)
#define M(a, b) make_pair(a, b)
#define F first
#define S second
#define all(x) (x.begin(), x.end())
#define deb(x) cerr << #x << " = " << x << '\n'
#define N 22... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 335 |
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 9)
def main():
k = int(input())
s = input()[:-1]
if len(s) <= k:
print(s)
else:
print(s[:7] + '...')
if __name__ == '__main__':
main()
| import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 9)
def main():
k = int(input())
s = input()[:-1]
if len(s) <= k:
print(s)
else:
print(s[:k] + '...')
if __name__ == '__main__':
main()
| [["-", 3, 4, 0, 657, 31, 206, 206, 663, 0, 612], ["+", 3, 4, 0, 657, 31, 206, 206, 663, 0, 22]] | 5 | 76 |
/*
:)
*/
#include <bits/stdc++.h>
using namespace std;
#define fl(i, a, b) for (int i = a; i < b; i++)
#define endl '\n'
#define pb push_back
#define ff first
#define ff first
#define ss second
#define inf 2e18
#define mod 998244353
#define fast ... | /*
:)
*/
#include <bits/stdc++.h>
using namespace std;
#define fl(i, a, b) for (int i = a; i < b; i++)
#define endl '\n'
#define pb push_back
#define ff first
#define ff first
#define ss second
#define inf 2e18
#define mod 998244353
#define fast ... | [["-", 0, 9, 0, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 9, 0, 9, 0, 46], ["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 104], ["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 75, 76, 0, 9, 0, 9, 0, 46]] | 1 | 150 |
K = int(input())
S = input()
len_S = len(S)
if len_S <= K:
print(S)
else:
ans = S[:K+1]
print(ans+"...")
| K = int(input())
S = input()
len_S = len(S)
if len_S <= K:
print(S)
else:
ans = S[:K]
print(ans+"...")
| [["-", 0, 662, 12, 206, 206, 663, 0, 657, 17, 72], ["-", 0, 662, 12, 206, 206, 663, 0, 657, 12, 612]] | 5 | 47 |
#define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <functional>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#in... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <functional>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#in... | [["-", 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 | 439 |
#include "bits/stdc++.h"
#define MOD 1000000007
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = (n)-1; i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define FOR(i, j, k) for (ll i = j; i < k; i++)
#define DUMP(i, v) ... | #include "bits/stdc++.h"
#define MOD 1000000007
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = (n)-1; i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define FOR(i, j, k) for (ll i = j; i < k; i++)
#define DUMP(i, v) ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 892 |
#include <bits/stdc++.h>
using namespace std;
int k;
string s;
int main() {
cin >> k >> s;
if (s.size() <= k)
cout << s << endl;
else
cout << s.substr(0, 7) << "..." << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int k;
string s;
int main() {
cin >> k >> s;
if (s.size() <= k)
cout << s << endl;
else
cout << s.substr(0, k) << "..." << endl;
return 0;
} | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 22]] | 1 | 61 |
def resolve():
K = int(input())
S = input()
if K > len(S):
print(S)
return
print(S[:K] + '...')
resolve() | def resolve():
K = int(input())
S = input()
if K >= len(S):
print(S)
return
print(S[:K] + '...')
resolve() | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 46 |
def main():
import sys
input = sys.stdin.readline
K = int(input())
S = list(input().rsplit()[0])
if K <= len(S):
print("".join(S[:K]) + "...")
else:
print("".join(S))
if __name__ == "__main__":
main()
| def main():
import sys
input = sys.stdin.readline
K = int(input())
S = list(input().rsplit()[0])
if K < len(S):
print("".join(S[:K]) + "...")
else:
print("".join(S))
if __name__ == "__main__":
main()
| [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 18]] | 5 | 85 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define contains(v, t) (find(v.begin(), v.end(), t) != v.end())
#define MOD 1000000007
typedef long long ll;
typedef unsigned long long ull;
int main() {
int k;
string s;
cin >> k >> s;
if (s.length() < k) {
cout... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define contains(v, t) (find(v.begin(), v.end(), t) != v.end())
#define MOD 1000000007
typedef long long ll;
typedef unsigned long long ull;
int main() {
int k;
string s;
cin >> k >> s;
if (s.length() <= k) {
cou... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 88 |
K = int(input())
S = input()
if len(S)>K:
S[:K]+"..."
else:
print(S) | K = int(input())
S = input()
if len(S)>K:
print(S[:K]+"...")
else:
print(S) | [["+", 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, 25]] | 5 | 36 |
//#define NDEBUG
#include "bits/stdc++.h"
#include <array>
#include <iostream>
#include <random>
#include <string>
#include <unordered_map>
#include <unordered_set>
#ifdef _MSC_VER
#include <ppl.h>
//#include <boost/multiprecision/cpp_dec_float.hpp>
//#include <boost/multiprecision/cpp_int.hpp>
//#include <boost/ration... | //#define NDEBUG
#include "bits/stdc++.h"
#include <array>
#include <iostream>
#include <random>
#include <string>
#include <unordered_map>
#include <unordered_set>
#ifdef _MSC_VER
#include <ppl.h>
//#include <boost/multiprecision/cpp_dec_float.hpp>
//#include <boost/multiprecision/cpp_int.hpp>
//#include <boost/ration... | [["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 1,932 |
#include <bits/stdc++.h>
#define repp(i, l, r) for (long long i = (l); i < (r); i++)
#define rep(i, n) for (long long i = 0; i < (n); ++i)
#define per(i, n) for (long long i = (n); i >= 0; --i)
const int INF = 2147483647; // int max
const long long int MOD = 1000000007;
using namespace std;
using ll = long long;
using ... | #include <bits/stdc++.h>
#define repp(i, l, r) for (long long i = (l); i < (r); i++)
#define rep(i, n) for (long long i = 0; i < (n); ++i)
#define per(i, n) for (long long i = (n); i >= 0; --i)
const int INF = 2147483647; // int max
const long long int MOD = 1000000007;
using namespace std;
using ll = long long;
using ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 190 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int k = scanner.nextInt();
String s = scanner.next();
if (s.length() <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k - 1) + "... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int k = scanner.nextInt();
String s = scanner.next();
if (s.length() <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k) + "...")... | [["-", 0, 16, 31, 492, 3, 4, 0, 16, 17, 33], ["-", 0, 16, 31, 492, 3, 4, 0, 16, 12, 499]] | 3 | 99 |
var read = require('readline').createInterface({
input : process.stdin,
output : process.stdout
});
var obj;
var inLine = [];
read.on('line', function(input) { inLine.push(input); });
read.on('close', function() {
obj = init(inLine);
myerr("-----start-----");
var start = new Date();
Main();
var end = new ... | var read = require('readline').createInterface({
input : process.stdin,
output : process.stdout
});
var obj;
var inLine = [];
read.on('line', function(input) { inLine.push(input); });
read.on('close', function() {
obj = init(inLine);
myerr("-----start-----");
var start = new Date();
Main();
var end = new ... | [["-", 3, 3, 0, 16, 31, 2, 3, 3, 0, 555], ["+", 3, 3, 0, 16, 31, 2, 3, 3, 0, 22]] | 2 | 561 |
k=int(input())
s=input()
if len(s) <= k:
print(s)
else:
print(s[:k]) | k=int(input())
s=input()
if len(s) <= k:
print(s)
else:
print(f"{s[:k]}...") | [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 45], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 46], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 35 |
k = (int)(input())
s=input()
if len(s)>k:
print(s[:7]+'...')
else:
print(s) | k = (int)(input())
s=input()
if len(s)>k:
print(s[:k]+'...')
else:
print(s) | [["-", 3, 4, 0, 657, 31, 206, 206, 663, 0, 612], ["+", 3, 4, 0, 657, 31, 206, 206, 663, 0, 22]] | 5 | 41 |
#include <iostream>
//#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 200005;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int k;
cin >> k;
string s;
cin >> s;
if ((int)s.size() > k) {
for (int i = 0; i < k; i++) {
cout << s[i];
... | #include <iostream>
//#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 200005;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int k;
cin >> k;
string s;
cin >> s;
if ((int)s.size() > k) {
for (int i = 0; i < k; i++) {
cout << s[i];
}
... | [["+", 0, 57, 64, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 57, 64, 9, 0, 7, 8, 9, 0, 46]] | 1 | 113 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
size_t k;
string s, ss = "";
cin >> k >> s;
if (s.size() <= k) {
cout << k << endl;
return 0;
}
for (size_t i = 0; i < k; ++i)
ss.push_back(s[i]);
cout << ss << "..." << endl;
retu... | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
size_t k;
string s, ss = "";
cin >> k >> s;
if (s.size() <= k) {
cout << s << endl;
return 0;
}
for (size_t i = 0; i < k; ++i)
ss.push_back(s[i]);
cout << ss << "..." << endl;
retu... | [["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 101 |
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n); i++)
typedef long long ll;
typedef vector<vector<ll>> vvl;
typedef vector<ll> vl;
typedef vector<vector<char>> vvc;
typedef vector<char> vc;
typed... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n); i++)
typedef long long ll;
typedef vector<vector<ll>> vvl;
typedef vector<ll> vl;
typedef vector<vector<char>> vvc;
typedef vector<char> vc;
typed... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 313 |
from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from math import gcd
from itertools import combinations # (string,3) 3回
from collections import deque
from collections import defaultdict
import bisect
#
# d = m - k[i] - k[j]
# if ... | from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from math import gcd
from itertools import combinations # (string,3) 3回
from collections import deque
from collections import defaultdict
import bisect
#
# d = m - k[i] - k[j]
# if ... | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 124 |
#include <bits/stdc++.h>
#define REP(i, a, n) for (long long i = (a); i < (long long)(n); ++i)
#define REPC(i, a, n) for (long long i = (a); i <= (long long)(n); ++i)
#define ALL(t) t.begin(), t.end()
#define RALL(t) t.rbegin(), t.rend()
#define MATINIT(type, row, col, init) \
... | #include <bits/stdc++.h>
#define REP(i, a, n) for (long long i = (a); i < (long long)(n); ++i)
#define REPC(i, a, n) for (long long i = (a); i <= (long long)(n); ++i)
#define ALL(t) t.begin(), t.end()
#define RALL(t) t.rbegin(), t.rend()
#define MATINIT(type, row, col, init) \
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 440 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using uint = unsigned int;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
/* [💭] [💡] [🎈] */
int main() {
cin.tie(nullptr);
cout.tie(nullptr);
ios_base::sync_with_stdio(false);
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using uint = unsigned int;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
/* [💭] [💡] [🎈] */
int main() {
cin.tie(nullptr);
cout.tie(nullptr);
ios_base::sync_with_stdio(false);
... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, h, m;
cin >> a >> b >> h >> m;
double k = abs(double((h * 30 + (double)(m / 2) - m * 6)));
k = min(k, 360 - k);
double pi = acos(-1.0);
cout << fixed << setprecision(15)
<< sqrt(abs(a * a + b * b - a * b * 2 * cos(k / 180.0 * pi))... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, h, m;
cin >> a >> b >> h >> m;
double k = abs(h * 30 + (double)(m / 2) - m * 6);
k = min(k, 360 - k);
double pi = acos(-1.0);
cout << fixed << setprecision(15)
<< sqrt(abs(a * a + b * b - a * b * 2 * cos(k / 180.0 * pi)));
re... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 49, 50, 51, 2, 3, 4, 0, 2, 63, 40], ["-", 51, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["-", 3, 4, 0, 2, 3, 4, 0, 23, 0, 24], ["-", 3, 4, 0, 2, 3, 4, 0, 23, 0, 25], ["-", 51, 2, 3, 4, 0, 2, 3, 4, 0, 25]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
#define LL long long
int main() {
double a, b, h, m, x;
scanf("%lf%lf%lf%lf", &a, &b, &h, &m);
double y = m / 2;
if (h * 5 >= m) {
x = ((h * 5) - m) * 6 + y;
} else {
x = (m - (h * 5)) * 6 + y;
}
double ans = sqrt((a * a) + (b * b) - (2 * a * b * cos(... | #include <bits/stdc++.h>
using namespace std;
#define LL long long
int main() {
double a, b, h, m, x;
scanf("%lf%lf%lf%lf", &a, &b, &h, &m);
double y = m / 2;
if (h * 5 >= m) {
x = ((h * 5) - m) * 6 + y;
} else {
x = (m - (h * 5)) * 6 - y;
}
double ans = sqrt((a * a) + (b * b) - (2 * a * b * cos(... | [["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 141 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.