結果
| 問題 | No.723 2つの数の和 |
| コンテスト | |
| ユーザー |
minr
|
| 提出日時 | 2020-03-17 10:24:34 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 17,952 KB |
| 最終ジャッジ日時 | 2026-10-02 10:10:11 |
| 合計ジャッジ時間 | 6,411 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 21 |
ソースコード
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