> For the complete documentation index, see [llms.txt](https://wenbo-notes.gitbook.io/coding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wenbo-notes.gitbook.io/coding/kattis/easy/class-field-trip.md).

# Class Field Trip

## Question

{% embed url="<https://open.kattis.com/problems/classfieldtrip>" %}

## Solution

### Idea

This is a classic **string manipulation**. Since the given two strings are in alphabetical order already. So we just need to use **three** variables to mark the processed character, and the logic is shown [below](#code)

{% hint style="info" %}
The test cases will include the situation when the input contains **exactly** 100 valid lowercase characters.
{% endhint %}

### Code

{% @github-files/github-code-block url="<https://github.com/mendax1234/Coding-Problems/blob/main/kattis/classfieldtrip/classfieldtrip.c>" %}
