結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
ikd
|
| 提出日時 | 2017-08-07 16:04:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 292 bytes |
| コンパイル時間 | 437 ms |
| コンパイル使用メモリ | 55,916 KB |
| 実行使用メモリ | 13,632 KB |
| 最終ジャッジ日時 | 2024-10-11 22:28:25 |
| 合計ジャッジ時間 | 3,960 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 21 |
ソースコード
#include<iostream>
using namespace std;
#define repeat(i,n) for(int i=0;i<(n);i++)
int main(){
int N, X;
cin>> N>> X;
int a[N];
repeat(i, N) cin>> a[i];
long long ans=0;
for(int e1: a)for(int e2: a){
if(e1+e2==X) ans++;
}
cout<< ans<< endl;
return 0;
}
ikd