結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
minr
|
| 提出日時 | 2020-03-17 10:24:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 241 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 34,440 KB |
| 最終ジャッジ日時 | 2024-11-30 05:30:58 |
| 合計ジャッジ時間 | 58,937 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 TLE * 19 |
ソースコード
N,X = map(int,input().split())
A = list(map(int,input().split()))
cnt = 0
for i in range(N):
for j in range(i,N):
if A[i] + A[j] == X and A[i] != A[j]:
cnt += 2
elif A[i] + A[j] == X and A[i] == A[j]:
cnt += 1
print(cnt)
minr