結果

問題 No.1237 EXP Multiple!
ユーザー KKT89KKT89
提出日時 2020-09-25 21:56:19
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 2,004 ms
コンパイル使用メモリ 198,952 KB
実行使用メモリ 4,848 KB
最終ジャッジ日時 2023-09-10 15:24:10
合計ジャッジ時間 3,456 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 13 ms
4,568 KB
testcase_06 WA -
testcase_07 AC 14 ms
4,592 KB
testcase_08 WA -
testcase_09 AC 14 ms
4,628 KB
testcase_10 AC 13 ms
4,732 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 14 ms
4,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;

constexpr ll mod=1e9+7;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int n; cin >> n;
	vector<ll> a(n);
	bool zero=0;
	for(int i=0;i<n;i++){
		cin >> a[i];
		if(!a[i])zero=true;
	}
	if(zero){
		printf("-1\n");
	}
}
0