結果

問題 No.1686 Geschenkt
コンテスト
ユーザー kou_kkk
提出日時 2023-08-24 21:52:14
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 158 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,525 ms
コンパイル使用メモリ 70,272 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-29 09:31:13
合計ジャッジ時間 5,500 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import intsets, math, sequtils, strutils
var
  _ = readLine stdin
  a = stdin.readLine.split.map parseInt
echo sum toSeq a.toIntSet - toIntSet a.mapIt succ it
0