結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2019-02-10 14:56:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 1,186 ms |
| コンパイル使用メモリ | 157,916 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-06 06:39:47 |
| 合計ジャッジ時間 | 5,109 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 21 |
ソースコード
#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;
}
🍮かんプリン