結果
問題 |
No.8100 始業式
|
ユーザー |
![]() |
提出日時 | 2023-03-31 22:04:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 4,093 ms |
コンパイル使用メモリ | 66,316 KB |
最終ジャッジ日時 | 2025-02-11 20:29:47 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <iostream> using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; int ret = 0; for (int i = 0; i < n; i++) { int f = 0; cin >> f; ret += 1 - f; } cout << (ret == 0 ? 1 : ret - 1) << endl; } return 0; }