> 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/champernowne-verification.md).

# Champernowne Verification

## Question

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

## Solution

### Idea

Instead of taking the input as an integer, I take it as a string. So, this problem becomes a basic **string manipulation** problem.

1. The first 9 possible digits is easy to validate
2. To validate the 10th digit, you can utilise the `strcmp()` from the [`string.h`](https://wenbo-notes.gitbook.io/coding/kattis/easy/pages/1kPuYUXEZL7WPNeKfvC0#string.h) C Standard Libaray.

### Code

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