結果
問題 |
No.864 四方演算
|
ユーザー |
![]() |
提出日時 | 2019-08-26 10:27:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 48,796 KB |
最終ジャッジ日時 | 2024-11-07 18:55:53 |
合計ジャッジ時間 | 2,528 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 1 TLE * 1 -- * 25 |
ソースコード
def func(N,K): numbers = [int(x) for x in range(1,N+1)] cnt = 0 for a in numbers.copy(): for b in numbers.copy(): for c in numbers.copy(): for d in numbers: if a*b+b*c+c*d+d*a == K: cnt +=1 return cnt if __name__ == "__main__": print(func(int(input()),int(input())))