結果
| 問題 | No.723 2つの数の和 |
| コンテスト | |
| ユーザー |
bluebery1001
|
| 提出日時 | 2024-02-20 13:03:18 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 4,467 ms |
| コンパイル使用メモリ | 360,260 KB |
| 実行使用メモリ | 434,232 KB |
| 最終ジャッジ日時 | 2026-04-15 14:45:08 |
| 合計ジャッジ時間 | 8,463 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 RE * 4 TLE * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include<atcoder/convolution>
using namespace atcoder;
typedef long long ll;
int main(){
ll n,x;cin >> n >> x;
vector<ll>cnt(x+1);
for(;n--;){
ll a;cin >> a;
if(a<=x)cnt[a]++;
}
auto ret = convolution_ll(cnt,cnt);
cout << ret[x] << endl;
}
bluebery1001