結果

問題 No.182 新規性の虜
ユーザー 6soukiti296soukiti29
提出日時 2019-07-20 18:12:19
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 3,075 ms
コンパイル使用メモリ 68,872 KB
実行使用メモリ 14,740 KB
最終ジャッジ日時 2023-09-14 23:42:06
合計ジャッジ時間 4,959 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 1 ms
4,380 KB
testcase_17 WA -
testcase_18 AC 35 ms
10,800 KB
testcase_19 AC 26 ms
8,708 KB
testcase_20 AC 14 ms
5,932 KB
testcase_21 AC 39 ms
11,400 KB
testcase_22 AC 18 ms
7,060 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 21 ms
13,420 KB
testcase_26 WA -
testcase_27 WA -
evil01.txt WA -
evil02.txt WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 26) Warning: imported and not used: 'math' [UnusedImport]

ソースコード

diff #

import sequtils,strutils,math,algorithm
var
    N = stdin.readline.parseInt
    X = stdin.readline.split.map(parseInt)
    cnt : int
X.add(0)
X.add(1000000007)
X.sort(cmp)
for i in 1 .. (N - 2):
    if X[i] != X[i - 1] and X[i] != X[i + 1]:
        cnt += 1
echo cnt
0