提出 #74830688
ソースコード 拡げる
// Date: 2026-04-11
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
bool debug_mode = 1;
#else
bool debug_mode = 0;
#endif
using ll = long long;
#define cerr if(debug_mode) cerr
int main() {
cin.tie(0) -> sync_with_stdio(0);
int n; string s; cin >> n >> s;
bool valid = 1;
for (int i = 0; i < n; i++) {
if (!valid) cout << s[i];
else if (s[i] != 'o') {
cout << s[i];
valid = 0;
}
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Trimo |
| ユーザ | Emmetthor |
| 言語 | C++ IOI-Style(GNU++20) (GCC 14.2.0) |
| 得点 | 100 |
| コード長 | 503 Byte |
| 結果 | AC |
| 実行時間 | 0 ms |
| メモリ | 1704 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 | 0 ms | 1704 KiB |
| sample_02.txt | AC | 0 ms | 1704 KiB |
| sample_03.txt | AC | 0 ms | 1704 KiB |
| test_01.txt | AC | 0 ms | 1704 KiB |
| test_02.txt | AC | 0 ms | 1704 KiB |
| test_03.txt | AC | 0 ms | 1704 KiB |
| test_04.txt | AC | 0 ms | 1704 KiB |
| test_05.txt | AC | 0 ms | 1704 KiB |
| test_06.txt | AC | 0 ms | 1704 KiB |
| test_07.txt | AC | 0 ms | 1704 KiB |
| test_08.txt | AC | 0 ms | 1704 KiB |
| test_09.txt | AC | 0 ms | 1704 KiB |
| test_10.txt | AC | 0 ms | 1704 KiB |