結果
問題 |
No.1336 Union on Blackboard
|
ユーザー |
![]() |
提出日時 | 2021-01-15 22:31:28 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 1,429 ms |
コンパイル使用メモリ | 121,984 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-26 16:23:16 |
合計ジャッジ時間 | 2,775 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 31 |
ソースコード
#include <iostream> #include <unordered_map> int main() { size_t n_case, n_num; int x, tmp; std::cin >> n_case; for (size_t i = 0; i < n_case; i++) { int ans = 1; std::cin >> n_num; for (size_t j = 0; j < n_num; j++) { std::cin >> tmp; ans *= tmp + 1; } ans--; std::cout << ans << std::endl; } }