提出 #75834642
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define all(x) (x).begin(), (x).end()
#define pb push_back
template<class T> inline bool chmax(T& a, T b) { return a < b ? a = b, 1 : 0; }
template<class T> inline bool chmin(T& a, T b) { return a > b ? a = b, 1 : 0; }
const int MOD = 1e9 + 7;
void solve() {
string s;cin>>s;
int n;cin>>n;
string ans(s.begin()+n,s.end()-n);
cout<<ans<<'\n';
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int tt = 1;
//cin >> tt;
while (tt--) {
solve();
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Chompers |
| ユーザ | lavi3 |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 755 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3472 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt |
| All | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00-sample-01.txt | AC | 1 ms | 3416 KiB |
| 00-sample-02.txt | AC | 1 ms | 3348 KiB |
| 00-sample-03.txt | AC | 1 ms | 3264 KiB |
| 01-01.txt | AC | 1 ms | 3344 KiB |
| 01-02.txt | AC | 1 ms | 3416 KiB |
| 01-03.txt | AC | 1 ms | 3332 KiB |
| 01-04.txt | AC | 1 ms | 3288 KiB |
| 01-05.txt | AC | 1 ms | 3348 KiB |
| 01-06.txt | AC | 1 ms | 3400 KiB |
| 01-07.txt | AC | 1 ms | 3368 KiB |
| 01-08.txt | AC | 1 ms | 3348 KiB |
| 01-09.txt | AC | 1 ms | 3472 KiB |