如何輸入多組測試資料

2021-08-08 19:58:45 字數 516 閱讀 4199

problem description

輸入三個字元後,按各字元的ascii碼從小到大的順序輸出這三個字元。

input

輸入資料有多組,每組佔一行,有三個字元組成,之間無空格。

output

對於每組輸入資料,輸出一行,字元中間用乙個空格分開。

sample input

qwe

asdzxc

sample output

e q w

a d s

c x z

對於這個輸入多組資料的問題,可以使用以下方式來解決:

#include

int main()}}

printf("%c %c %c\n", a[0], a[1], a[2]);

}

return 0;
}

資料庫中構造多組測試資料

步驟 1 明確對應資料庫名 2 明確該功能對應的表名 3 明確資料庫中的字段規則 是否必填,字段長度,是否加密 4 構造正確的insert命令進行插入實驗 5 在sql命令中構造迴圈結構 儲存過程 以建立使用者為例 1 插入單行資料 insert into iwebshop user usernam...

構造測試資料 對比測試資料

正確 include using namespace std typedef long long ll const int max n 1e6 10 intmain return0 author max n date 2019 10 04 15.03.21 description 正確 錯誤 inc...

PAT中測試資料的輸入技巧

把測試資料給正確的輸入程式中,是做題的開始。有時候在輸入測試資料就費了很長時間,所以在此總結一些麻煩的地方及輸入技巧。1.空格的麻煩 在此說明幾個知識點 includeint main 輸入 2輸出 2 include includeusing namespace std int main 輸入 a...