結果
問題 | No.1692 Expectations |
ユーザー |
![]() |
提出日時 | 2021-10-01 21:27:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 422 ms |
コンパイル使用メモリ | 49,536 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-07-19 10:32:32 |
合計ジャッジ時間 | 1,598 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 WA * 2 |
ソースコード
#include <stdio.h>#include <set>int main() {int n, m, in, mi = 0, ma;scanf("%d %d", &n, &m);std::set<int> s;for(int i = 0; i < n; ++i) {scanf("%d", &in);s.insert(in);}if(s.size() == 1) mi = 1;printf("%ld %d\n", s.size(), mi);return 0;}