提出 #74830459


ソースコード 拡げる

#include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define compress(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define sz(x) (int)(x).size()
using namespace std;
typedef long long ll;

int main() {
    fastio; int n; string s; cin >> n >> s;
    string ans; int i = 0;
    for (; i < n; i++) {
        if (s[i] != 'o') break;
    }
    for (; i < n; i++) ans += s[i];
    cout << ans << "\n";
    return 0;
}

提出情報

提出日時
問題 A - Trimo
ユーザ Lov34ever
言語 C++23 (GCC 15.2.0)
得点 100
コード長 530 Byte
結果 AC
実行時間 1 ms
メモリ 3616 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt
ケース名 結果 実行時間 メモリ
sample_01.txt AC 1 ms 3460 KiB
sample_02.txt AC 1 ms 3588 KiB
sample_03.txt AC 1 ms 3400 KiB
test_01.txt AC 1 ms 3504 KiB
test_02.txt AC 1 ms 3400 KiB
test_03.txt AC 1 ms 3504 KiB
test_04.txt AC 1 ms 3588 KiB
test_05.txt AC 1 ms 3540 KiB
test_06.txt AC 1 ms 3616 KiB
test_07.txt AC 1 ms 3600 KiB
test_08.txt AC 1 ms 3484 KiB
test_09.txt AC 1 ms 3504 KiB
test_10.txt AC 1 ms 3588 KiB