結果
| 問題 | No.1257 変わった平均値 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-10-16 21:35:18 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 542 bytes | 
| コンパイル時間 | 631 ms | 
| コンパイル使用メモリ | 74,240 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-20 21:13:52 | 
| 合計ジャッジ時間 | 1,397 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 25 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    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());
    int flag = 0;
    for(int i = 0; i < 3; i++){
        if(a[i] != b[i]) flag = 1;
    }
    if(flag == 0){
        cout << "Yes" << endl;
        cout << 2 << endl;
        return 0;
    }
    cout << "No" << endl;
}
            
            
            
        