結果
問題 |
No.998 Four Integers
|
ユーザー |
![]() |
提出日時 | 2020-02-28 21:27:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 426 bytes |
コンパイル時間 | 684 ms |
コンパイル使用メモリ | 74,008 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-13 16:43:10 |
合計ジャッジ時間 | 1,413 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 14 WA * 9 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> int main(void) { std::vector<int> num(4); for (int i = 0; i < 4; i++) { std::cin >> num.at(i); } std::sort(num.begin(), num.end()); int a = 0; for (int j = 0; j < 3; j++) { if (num.at(j) - num.at(j + 1) != 0) { a++; } } if (a == 0) { std::cout << "Yes" << std::endl; } else { std::cout << "No" << std::endl; } }