結果
| 問題 | No.1257 変わった平均値 | 
| コンテスト | |
| ユーザー |  沙耶花 | 
| 提出日時 | 2020-10-16 21:50:17 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 391 bytes | 
| コンパイル時間 | 2,067 ms | 
| コンパイル使用メモリ | 198,068 KB | 
| 最終ジャッジ日時 | 2025-01-15 08:18:29 | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 25 | 
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001
int main(){	
	
	vector<int> s(3),t(3);
	rep(i,3){
		cin>>s[i];
	}
	
	rep(i,3){
		cin>>t[i];
	}
	
	sort(s.begin(),s.end());
	sort(t.begin(),t.end());
	
	if(s==t){
		cout<<"Yes"<<endl;
		cout<<2<<endl;
		return 0;
	}
	
	cout<<"No"<<endl;
	
    return 0;
}
            
            
            
        