結果

問題 No.3100 始業式
ユーザー CleyLCleyL
提出日時 2023-05-02 12:36:38
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 67,380 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-05-01 03:23:41
合計ジャッジ時間 1,108 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
	int t;cin>>t;
	for(int i = 0; t > i; i++){
		int n;cin>>n;
		int x = 0;
    int ans = 0;
		for(int j = 0; n > j; j++)cin>>x,ans+=x;
		cout << ans-x << endl;
	}
}
0