結果
問題 |
No.1027 U+1F4A0
|
ユーザー |
|
提出日時 | 2020-04-17 21:31:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-03 11:21:31 |
合計ジャッジ時間 | 1,622 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 9 |
ソースコード
def main_function(): from sys import stdin from sys import stdout from math import sqrt input = stdin.readline print = stdout.write d1, d2 = list(map(int, input().split())) if (sqrt(d1) > sqrt(d2) / 2 and sqrt(d1) == sqrt(d2)) or sqrt(d1) == sqrt(d2) / 2: print('4') elif sqrt(d2) / 2 < sqrt(d1) < sqrt(d2): print('8') else: print('0') if __name__ == '__main__': main_function()