---
title: "Discussion on \"2025春训第二十七场\" | Hashnode"
description: "Discussion on \"2025春训第二十七场\". A. 序列\n逻辑非常简单，先输出 k 个 0 之后 01 交替输出直到把 0 用完，最后输出剩下的 1.\n#include <iostream>\n\nusing namespace std;\n\nint main() {\n    int n, m, k;\n    scanf(\"%d%d%d\", &n, &m, &k);\n    for (int i = 1; i <= k; ++i) {\n        printf(\"0\");\n        m--;\n    }\n    while (n || ..."
url: "https://hashnode.com/posts/2025st27/684437765dcba4f6ea2ef6c2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [2025春训第二十七场](https://invalidname.hashnode.dev/2025st27?utm_source=hashnode&utm_medium=feed)

A. 序列 逻辑非常简单，先输出 k 个 0 之后 01 交替输出直到把 0 用完，最后输出剩下的 1. #include <iostream> using namespace std; int main() { int n, m, k; scanf("%d%d%d", &n, &m, &k); for (int i = 1; i <= k; ++i) { printf("0"); m--; } while (n || ...

Jun 7, 2025 · 7 min read · invalidname.hashnode.dev  
Read the article

-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Star](https://hashnode.com/@InvalidName)

@InvalidName · China

  
[View profile](https://hashnode.com/@InvalidName)

A Chinese OIer and a tosser.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
