# sopherwenxin学习笔记

posts - 5, comments - 8, trackbacks - 0, articles - 1 1

10

8  7  4  2  5  1  9  3  10  6

1

22

### Feedback

To hnhls99 :

To 学习笔记：

#include<stdio.h>
#include<malloc.h>
void main()
{
int n,m,i,j,k,count=0;
int *a;
scanf("%d",&m);
for(i=0;i<m;i++)
{
scanf("%d",&n);
a=(int *)malloc(n*sizeof(int));
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(j=0;j<n;j++)
{
for(k=j+1;k<n;k++)
{
if(a[j]<a[k]) count++;
}
}
printf("%d\n%d\n",i,count);
}

}
{"ft_lang_label":"__label__zh","ft_lang_prob":0.9015987,"math_prob":0.9924627,"size":1047,"snap":"2021-43-2021-49","text_gpt3_token_len":778,"char_repetition_ratio":0.17449665,"word_repetition_ratio":0.10638298,"special_character_ratio":0.37249285,"punctuation_ratio":0.21524663,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.977549,"pos_list":[0,1,2],"im_url_duplicate_count":[null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-27T02:06:50Z\",\"WARC-Record-ID\":\"<urn:uuid:bfde2872-7264-485b-935b-5a54c8daf197>\",\"Content-Length\":\"44373\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:781609bc-ab10-4cb7-b82e-767a69fe02da>\",\"WARC-Concurrent-To\":\"<urn:uuid:311830e8-a94f-41ed-9cac-593fac6a6564>\",\"WARC-IP-Address\":\"47.97.166.246\",\"WARC-Target-URI\":\"http://www.cppblog.com/sopherwenxin/archive/2006/01/14/2729.html\",\"WARC-Payload-Digest\":\"sha1:IB4ALXQAX52FAWKFU5AOVSSWJ3TTSE2R\",\"WARC-Block-Digest\":\"sha1:RS2B2WXIFMZZV5O5VX4AN4AMVVDHT5LG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358078.2_warc_CC-MAIN-20211127013935-20211127043935-00611.warc.gz\"}"}