結果
問題 |
No.723 2つの数の和
|
ユーザー |
![]() |
提出日時 | 2024-08-23 23:02:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,372 KB |
実行使用メモリ | 89,808 KB |
最終ジャッジ日時 | 2024-08-23 23:03:01 |
合計ジャッジ時間 | 3,393 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 11 |
ソースコード
from bisect import bisect_left as bl , bisect_right as br n,x=map(int,input().split()) A=list(map(int,input().split())) ans=0 for a in A: right=br(A,x-a) left=bl(A,x-a) ans+=right-left print(ans)