結果
| 問題 | No.723 2つの数の和 |
| コンテスト | |
| ユーザー |
bluebery1001
|
| 提出日時 | 2024-02-20 13:03:18 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 2,849 ms |
| コンパイル使用メモリ | 360,500 KB |
| 実行使用メモリ | 434,060 KB |
| 最終ジャッジ日時 | 2026-09-05 19:59:56 |
| 合計ジャッジ時間 | 9,998 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 RE * 5 |
ソースコード
#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