Universal Cup Judging System

Universal Cup

시간 제한: 2.0 s 메모리 제한: 1024 MB 총점: 100
통계

AMPPZ 2025 では、$27$ の機関から $80$ チームが出場して競い合います。これらの機関の略称は UW, UJ, UWR, MAP, PW, AGH, PG, NLU, PUT, PO, PWR, SGGW, UMCS, UR, ZUT, DTP, GOO, HUA, KUL, PL, PM, PS, UAM, UG, UMK, UO, WAT です。各機関のチーム数を示す完全な表は以下の通りです*:

正式名称 略称 チーム数
Uniwersytet Warszawski UW 11
Uniwersytet Jagielloński UJ 9
Uniwersytet Wrocławski UWR 8
Mistrzostwa w Algorytmice i Programowaniu (secondary schools) MAP 7
Politechnika Warszawska PW 6
Akademia Górniczo-Hutnicza im. Stanisława Staszica w Krakowie AGH 5
Politechnika Gdańska PG 4
Wyższa Szkoła Biznesu - National-Louis University NLU 3
Politechnika Poznańska PUT 3
Politechnika Opolska PO 2
Politechnika Wrocławska PWR 2
Szkoła Główna Gospodarstwa Wiejskiego w Warszawie SGGW 2
Uniwersytet Marii Curie-Skłodowskiej w Lublinie UMCS 2
Uniwersytet Rzeszowski UR 2
Zachodniopomorski Uniwersytet Technologiczny w Szczecinie ZUT 2
Digital Technology Poland DTP 1
Google GOO 1
Huawei HUA 1
Katolicki Uniwersytet Lubelski Jana Pawła II KUL 1
Politechnika Łódzka PL 1
Politechnika Morska w Szczecinie PM 1
Politechnika Śląska PS 1
Uniwersytet im. Adama Mickiewicza w Poznaniu UAM 1
Uniwersytet Gdański UG 1
Uniwersytet Mikołaja Kopernika w Toruniu UMK 1
Uniwersytet Opolski UO 1
Wojskowa Akademia Techniczna WAT 1

*この問題の準備段階から実際のコンテストまでの間に、チーム一覧がわずかに変更される可能性があります。

コンテスト会場は $8$ 行からなり、各行に $10$ 個のワークステーションがある $8 \times 10$ のグリッドです。不正な通信を防ぐため、主催者は同じ機関のチーム同士が隣り合って座らない(辺も角も共有しない)ような配置を見つけなければなりません。

観客にはお気に入りのチームがあります。それは入力で略称が与えられる機関のチームです。撮影クルーはすでにコンテスト会場の左上隅にカメラを設置しているため、入力で与えられた機関の 1 チームはそこに座らなければなりません。

与えられた条件を満たすチームの配置を 1 つ求めてください。

入力

唯一の行には、$2$ 文字から $4$ 文字の英大文字からなる単語(上記の $27$ 機関のいずれかである、お気に入りの機関の略称)が与えられます。

出力

見つけたチームの配置を、各行が空白で区切られた $10$ 個の単語(略称)からなる $8$ 行として出力してください。1 行目の最初の単語は、入力で与えられたお気に入りの機関と一致していなければなりません。条件を満たす解が複数存在する場合は、そのうちのどれを出力しても構いません。

ノート

サンプルテストでは、観客のお気に入りは Uniwersytet Wrocławski† です。以下に示された出力には正しい略称とチーム数が含まれており、UWR は実際に左上隅に現れています。しかし、多くの場所で同じ機関のチーム同士が隣接しているため、これは有効な出力ではありません。以下では、衝突の 3 つの例が太字で強調表示されています。

UWR MAP MAP UJ PL UW UW SGGW ZUT GOO
MAP PUT UR KUL UW UW PM AGH UWR AGH
PS UJ UWR UW UWR MAP UWR PG UWR PWR
PW HUA PW AGH PG DTP UW UW UW PWR
MAP UG NLU UJ PUT UAM UW UJ UJ UW
NLU ZUT PW WAT UWR AGH UMCS UR UJ AGH
PUT UJ SGGW PG PW MAP PO MAP UJ UWR
UMCS PO PW PW UO UW PG UJ NLU UMK

†おそらく UWR のチームの 1 つが前回の AMPPZ で優勝したからでしょう。

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.