結果

問題 No.723 2つの数の和
ユーザー StarMatyan
提出日時 2018-08-10 00:42:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 310 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,952 KB
最終ジャッジ日時 2024-09-23 05:19:57
合計ジャッジ時間 4,043 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 1 -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

shoki = input();
shokid = shoki.split(" ");
hai = int(shokid[0]);
wa = int(shokid[1]);

retu = input();
retud = retu.split(" ");
data = 0;
count = 0;

for first in range(0,hai):
	for second in range(0,hai):
		data = int(retud[first]) + int(retud[second]);
		if data == wa:
			count = count+ 1;

print(count);

0