結果
問題 |
No.1257 変わった平均値
|
ユーザー |
![]() |
提出日時 | 2020-10-16 21:47:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 724 ms |
コンパイル使用メモリ | 74,284 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 21:18:31 |
合計ジャッジ時間 | 1,664 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> int main(){ std::vector<int> before(3), after(3); for(int i = 0; i < 3; ++i){ std::cin >> before[i]; } for(int i = 0; i < 3; ++i){ std::cin >> after[i]; } std::sort(before.begin(), before.end()); std::sort(after.begin(), after.end()); for(int i = 0; i < 3; ++i){ if(before[i] != after[i]){ std::cout << "No" << std::endl; return 0; } } std::cout << "Yes\n2" << std::endl; }