結果
問題 | No.1257 変わった平均値 |
ユーザー | 🍮かんプリン |
提出日時 | 2020-10-16 22:12:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 541 bytes |
コンパイル時間 | 1,606 ms |
コンパイル使用メモリ | 171,772 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-20 21:58:44 |
合計ジャッジ時間 | 2,433 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
/** * @FileName a.cpp * @Author kanpurin * @Created 2020.10.16 22:11:59 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { vector<int> a(3),b(3); for (int i = 0; i < 3; i++) { cin >> a[i]; } for (int i = 0; i < 3; i++) { cin >> b[i]; } sort(a.begin(), a.end()); sort(b.begin(), b.end()); if (a[0] == b[0] && a[1] == b[1] && a[2] == b[2]) { puts("Yes"); cout << 2 << endl; } else { puts("No"); } return 0; }