結果
| 問題 | No.723 2つの数の和 |
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2019-02-10 14:56:38 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 1,544 ms |
| コンパイル使用メモリ | 177,300 KB |
| 実行使用メモリ | 15,816 KB |
| 最終ジャッジ日時 | 2026-03-27 17:55:34 |
| 合計ジャッジ時間 | 12,969 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 TLE * 4 -- * 15 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
long long int x,y;
int n,c=0;
cin >> n >> x;
int a[n];
for (int i=0;i<n;i++) cin >> a[i];
for (int i=0;i<n;i++) {
y=x-a[i];
for (int j=0;j<n;j++) if (y==a[j]) c++;
}
cout << c << endl;
return 0;
}
🍮かんプリン