国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

CF 1850C - Word on the Paper

2023-08-11 13:17 作者:您是打尖兒還是住店呢  | 我要投稿

On an 8×8 grid of dots, a word consisting of lowercase Latin letters is written vertically in one column, from top to bottom. What is it?


Input

The input consists of multiple test cases. The first line of the input contains a single integer t (1≤t≤1000) — the number of test cases.


Each test case consists of 8 lines, each containing 8 characters. Each character in the grid is either .

?(representing a dot) or a lowercase Latin letter (a–z).


The word lies entirely in a single column and is continuous from the beginning to the ending (without gaps). See the sample input for better understanding.


Output

For each test case, output a single line containing the word made up of lowercase Latin letters (a–z) that is written vertically in one column from top to bottom.

-------------------------------------------------------------

在 8×8 的點(diǎn)陣上,由小寫拉丁字母組成的單詞從上到下垂直寫在一列中。 它是什么?


輸入

輸入由多個(gè)測試用例組成。 輸入的第一行包含一個(gè)整數(shù) t (1≤t≤1000) — 測試用例的數(shù)量。


每個(gè)測試用例由 8 行組成,每行包含 8 個(gè)字符。 網(wǎng)格中的每個(gè)字符都是 .

? (代表點(diǎn))或小寫拉丁字母 (a–z)。


該單詞完全位于單列中,并且從開頭到結(jié)尾是連續(xù)的(沒有間隙)。 請參閱示例輸入以更好地理解。


輸出

對于每個(gè)測試用例,輸出一行,其中包含由小寫拉丁字母 (a–z) 組成的單詞,該單詞從上到下垂直寫在一列中。

----------------------------------------

代碼:


CF 1850C - Word on the Paper的評論 (共 條)

分享到微博請遵守國家法律
永吉县| 如东县| 灵武市| 泰安市| 太和县| 涟源市| 乃东县| 牙克石市| 资阳市| 泊头市| 原阳县| 武山县| 安达市| 方山县| 安乡县| 宣汉县| 韩城市| 尼勒克县| 巴彦淖尔市| 嘉祥县| 台湾省| 永济市| 普陀区| 辽源市| 齐齐哈尔市| 荃湾区| 黔南| 喀什市| 沙湾县| 潞西市| 安龙县| 绥德县| 儋州市| 桂东县| 尤溪县| 应用必备| 军事| 吉隆县| 长乐市| 三穗县| 永泰县|