結果

問題 No.8100 始業式
ユーザー 👑 CleyL
提出日時 2023-05-02 12:36:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 587 ms
コンパイル使用メモリ 65,952 KB
最終ジャッジ日時 2025-02-12 16:34:32
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

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