結果
問題 |
No.1027 U+1F4A0
|
ユーザー |
![]() |
提出日時 | 2020-04-29 19:46:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-29 15:53:22 |
合計ジャッジ時間 | 1,679 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
# Problem U+1F4A0 import math # input D_1, D_2 = map(int, input().split()) # initialization h = math.sqrt(D_2 / 2) if math.sqrt(D_1)>h and math.sqrt(D_1)<math.sqrt(D_2): print(8) elif math.sqrt(D_1)==h or math.sqrt(D_1)==math.sqrt(D_2): print(4) else: print(0)