結果
| 問題 | No.152 貯金箱の消失 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-02 00:03:38 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2,695 ms / 5,000 ms |
| + 651µs | |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2026-09-28 06:39:12 |
| 合計ジャッジ時間 | 10,741 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
from math import gcd
l=int(input())
c=0
for i in range(2,int(l**0.5)+1):
for j in range(1,i):
if gcd(i**2+j**2,gcd(i**2-j**2,2*i*j))==1:
if 8*(i*(i+j))<=l:
c+=1
print(c)