結果

問題 No.742 にゃんにゃんにゃん 猫の挨拶
ユーザー 👑 KazunKazun
提出日時 2021-02-10 01:48:21
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 198 bytes
コンパイル時間 2,027 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 81,092 KB
最終ジャッジ日時 2023-09-21 13:05:12
合計ジャッジ時間 7,145 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
75,736 KB
testcase_01 AC 76 ms
71,296 KB
testcase_02 AC 76 ms
71,124 KB
testcase_03 AC 76 ms
71,184 KB
testcase_04 AC 84 ms
75,600 KB
testcase_05 AC 83 ms
76,072 KB
testcase_06 AC 82 ms
76,336 KB
testcase_07 AC 84 ms
76,600 KB
testcase_08 AC 101 ms
76,604 KB
testcase_09 AC 75 ms
71,260 KB
testcase_10 AC 73 ms
71,196 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
N=int(input())
M=[0]*N
for i in range(N):
    M[i]=int(input())

X=0
for i in range(N):
    for j in range(i+1,N):
        if M[i]>M[j]:
            X+=1
print(X)
0