結果
問題 |
No.1257 変わった平均値
|
ユーザー |
![]() |
提出日時 | 2020-10-16 23:51:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 475 bytes |
コンパイル時間 | 1,763 ms |
コンパイル使用メモリ | 172,688 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-21 01:04:35 |
合計ジャッジ時間 | 2,926 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int,int> P; int INF = 3e18; int mod = 1e9+7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { vector<int>a(3),b(3); cin >> a[0] >> a[1] >> a[2]; cin >> b[0] >> b[1] >> b[2]; sort(a.begin(),a.end()); sort(b.begin(),b.end()); if(a == b) { cout << "Yes" << endl; cout << 2 << endl; } else { cout << "No" << endl; } }