結果
| 問題 |
No.152 貯金箱の消失
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-01 23:45:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-11-22 17:24:46 |
| 合計ジャッジ時間 | 4,435 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 2 |
ソースコード
from math import gcd
l=int(input())
c=0
for i in range(1,10**3):
for j in range(i+1,10**3+1):
if 8*((j**2)+j*i)<=l and gcd(gcd(i**2+j**2,2*i*j),j**2-i**2)==1:
c+=1
print(c%(10**6+3))