QOJ.ac

QOJ

実行時間制限: 1.0 s メモリ制限: 32 MB 満点: 20

#17102. BIJELE

統計

Mirko 在他的阁楼里发现了一块旧棋盘和一套棋子。不幸的是,这套棋子只包含白色的棋子,而且数量显然是不正确的。一套完整的棋子应该包含:

  • 1 个王
  • 1 个后
  • 2 个车
  • 2 个象
  • 2 个马
  • 8 个兵

Mirko 想知道他应该添加或减少每种类型的棋子各多少个,才能组成一套完整的棋子。

输入格式

输入包含一行,共 6 个整数,每个整数都在 $0$ 到 $10$ 之间(含 $0$ 和 $10$)。这些数字依次代表 Mirko 找到的棋子中王、后、车、象、马和兵的数量。

输出格式

输出应包含一行,共 6 个整数,代表 Mirko 应该添加或减少的每种棋子的数量。如果数字为正,表示 Mirko 需要添加相应数量的棋子;如果数字为负,表示 Mirko 需要减少相应数量的棋子。

样例

输入样例 1

0 1 2 2 2 7

输出样例 1

1 0 0 0 0 1

输入样例 2

2 1 2 1 2 1

输出样例 2

-1 0 0 1 0 7

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.