結果

問題 No.1389 Clumsy Calculation
ユーザー ガジュマルガジュマル
提出日時 2021-02-26 20:48:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 957 bytes
コンパイル時間 1,805 ms
コンパイル使用メモリ 163,532 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 11:17:18
合計ジャッジ時間 4,910 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 3 ms
6,940 KB
testcase_04 AC 3 ms
6,940 KB
testcase_05 AC 3 ms
6,940 KB
testcase_06 AC 3 ms
6,940 KB
testcase_07 WA -
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 91 ms
6,944 KB
testcase_10 AC 30 ms
6,940 KB
testcase_11 AC 3 ms
6,944 KB
testcase_12 AC 2 ms
6,944 KB
testcase_13 AC 2 ms
6,940 KB
testcase_14 WA -
testcase_15 AC 71 ms
6,944 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 77 ms
6,940 KB
testcase_19 WA -
testcase_20 AC 78 ms
6,948 KB
testcase_21 AC 77 ms
6,940 KB
testcase_22 WA -
testcase_23 AC 81 ms
6,940 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 65 ms
6,944 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
using LLI = long long;
#define INF 999999999
#define MOD 1000000007
#define FOR(i, s, e) for(LLI i = s, i##_lim = (e); i < i##_lim; i++)
#define FORR(i, s, e) for(LLI i = s-1, i##_lim = (e); i##_lim<=i; i--)
#define REP(i, n) FOR(i,0,n)
#define REPR(i, n) FORR(i,n,0)
#define chmax(a, b) a = max(a, b)
#define chmin(a, b) a = min(a, b)
#define bit(a, shift) ((a>>shift)&1))
#define pm(a) ((a)?1:-1)
#define SORT(v) sort(v.begin(),v.end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
#define Mat2(type,name,h,w,def) vector<vector<type>> name(h,vector<type>(w, def))
#define Mat3(type,name,h,w,d,def) vector<vector<vector<type>>> name(h,vector<vector<type>>(w, vector<int>(d,def)))
// int 2.14E±9    LLIi 9.2E±18    double 1.7E±380


int main()
{
	cout << fixed << setprecision(10);

	LLI n, x;
	cin >> n >> x;
	LLI sum = 0;
	REP(i, n)
	{
		LLI s;
		cin >> s;
		sum += s;
	}
	cout << sum % x;

	return 0;
}
0