1045 刪除重複

2021-07-04 22:23:40 字數 734 閱讀 2834

刪除重複

time limit:1000ms  memory limit:65536k

total submit:326 accepted:206

description

在一無符號整型陣列中,存在著一些重複的數字,請將重複的數字去掉,再按公升序進行輸出。

input

輸入資料由兩行組成,第一行為數字的數量,第二行則是由空格分隔的資料。

output

由回車分隔的若干資料。

sample input

5

1 1 6 3 3

sample output

1

36

hint

(注:待處理的資料不超過200個,且所有資料都為[0,10000]之間的自然數。)

source

using system;

using system.collections.generic;

using system.linq;

using system.text;

namespace ak1045

}}

刪除重複字元

本題要求編寫程式,將給定字串去掉重複的字元後,按照字元ascii碼順序從小到大排序後輸出。輸入格式 輸入是乙個以回車結束的非空字串 少於80個字元 輸出格式 輸出去重排序後的結果字串。輸入樣例 ad2f3adjfeainzzzv輸出樣例 23adefijnvz include include voi...

刪除重複資料

介紹兩種刪除重複行的方式 1.使用臨時表,分組找出重複部分的id進行刪除 刪除table goods info 中存在重複goods id的記錄 select identity int,1,1 as autoid,into temptable from goods info select min a...

oracle刪除重複行

oracle刪除重複行,一定是設定主鍵才能用 delete from sys role function a where exists select from sys role function where srfu id oracle刪除重複行,可以不用主鍵,推薦使用 delete from sy...