結果
| 問題 |
No.1257 変わった平均値
|
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2020-10-16 22:41:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 456 bytes |
| コンパイル時間 | 2,012 ms |
| コンパイル使用メモリ | 199,036 KB |
| 最終ジャッジ日時 | 2025-01-15 08:56:32 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using namespace chrono;
int main()
{
vector<int> as(3), bs(3);
for (auto &&a : as)
{
cin >> a;
}
for (auto &&b : bs)
{
cin >> b;
}
if (multiset<int>(as.begin(), as.end()) == multiset<int>(bs.begin(), bs.end()))
{
int cnt = 0;
for (int i = 0; i < 3; i++)
{
if (as[i] != bs[i])
{
cnt++;
}
}
cout << (cnt + 1) / 2 << endl;
}
else
{
cout << "No" << endl;
}
return 0;
}
ldsyb