結果
問題 | No.1257 変わった平均値 |
ユーザー |
![]() |
提出日時 | 2020-10-16 21:55:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 571 bytes |
コンパイル時間 | 654 ms |
コンパイル使用メモリ | 84,772 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 21:39:33 |
合計ジャッジ時間 | 1,346 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <iostream>#include <algorithm>#include <iomanip>#include <vector>#include <queue>#include <set>#include <map>using namespace std;typedef long long ll;int a[3], b[3];int main(){ios::sync_with_stdio(false);cin.tie(0);cout << setprecision(10) << fixed;cin >> a[0] >> a[1] >> a[2];cin >> b[0] >> b[1] >> b[2];sort(a, a+3);sort(b, b+3);for(int i = 0; i < 3; i++){if(a[i] != b[i]){cout << "No" << endl;return 0;}}cout << "Yes" << endl;cout << 2 << endl;}