結果
問題 |
No.998 Four Integers
|
ユーザー |
![]() |
提出日時 | 2020-02-28 21:25:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 424 bytes |
コンパイル時間 | 616 ms |
コンパイル使用メモリ | 74,264 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-13 16:39:05 |
合計ジャッジ時間 | 1,343 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 23 |
ソースコード
#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; } } }