結果
| 問題 | No.1257 変わった平均値 | 
| コンテスト | |
| ユーザー |  umezo | 
| 提出日時 | 2020-10-16 22:31:42 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 481 bytes | 
| コンパイル時間 | 2,021 ms | 
| コンパイル使用メモリ | 197,656 KB | 
| 最終ジャッジ日時 | 2025-01-15 08:49:38 | 
| ジャッジサーバーID (参考情報) | judge3 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 25 | 
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;
#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d,e,f;
  cin>>a>>b>>c>>d>>e>>f;
  
  vector<int> A{a,b,c};
  vector<int> B{d,e,f};
  
  sort(ALL(A));
  sort(ALL(B));
  
  bool flag=true;
  rep(i,3){
    if(A[i]!=B[i]) flag=false;
  }
  if(flag==false){
    cout<<"No"<<endl;
    return 0;
  }
  
  cout<<"Yes"<<endl;
  cout<<2<<endl;
  return 0;
}
            
            
            
        