結果
| 問題 |
No.1257 変わった平均値
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-16 21:45:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 547 bytes |
| コンパイル時間 | 1,771 ms |
| コンパイル使用メモリ | 171,164 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 21:15:05 |
| 合計ジャッジ時間 | 2,565 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr char newl = '\n';
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
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];
}
bool hoge = (a == b);
sort(a.begin(), a.end());
sort(b.begin(), b.end());
if (a == b) {
cout << "Yes\n";
if (!hoge) cout << 2 << newl;
} else {
cout << "No\n";
}
return 0;
}