結果

問題 No.1692 Expectations
ユーザー AzumabashiAzumabashi
提出日時 2022-01-27 19:09:58
言語 Nim
(2.0.2)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 3,771 ms
コンパイル使用メモリ 68,800 KB
実行使用メモリ 33,104 KB
最終ジャッジ日時 2023-08-26 20:47:57
合計ジャッジ時間 5,366 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 44 ms
23,540 KB
testcase_11 AC 44 ms
27,984 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 5 ms
5,108 KB
testcase_15 AC 45 ms
21,992 KB
testcase_16 AC 5 ms
5,004 KB
testcase_17 AC 26 ms
12,736 KB
testcase_18 AC 9 ms
7,124 KB
testcase_19 AC 57 ms
32,840 KB
testcase_20 AC 42 ms
22,376 KB
testcase_21 AC 57 ms
33,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sets, sequtils, strutils

var n, m: int
(n, m) = map(readLine(stdin).split(), parseInt)
let a = toHashSet(map(readLine(stdin).split(), parseInt))

var min_ans: int = 0
if n == m and a.len == 1:
  min_ans = 1

echo a.len, ' ', min_ans
0