結果
| 問題 | No.3650 Teleportation Cycles |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-28 23:11:18 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 2,990 ms |
| コンパイル使用メモリ | 347,772 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-28 23:11:38 |
| 合計ジャッジ時間 | 5,348 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 28 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
ll n;
cin >> n;
ll count1 = 0;
for (ll i = 0; i < n; i++)
{
ll x;
cin >> x;
if (x == 1) count1++;
}
cout << count1 + 1;
return 0;
}