結果
問題 |
No.1027 U+1F4A0
|
ユーザー |
|
提出日時 | 2020-04-17 21:39:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-03 11:45:26 |
合計ジャッジ時間 | 1,548 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
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 d1 == d2 or sqrt(d1) == sqrt(d2 * d2 / 2): print('4') elif sqrt(d2 * d2 / 2) < sqrt(d1) < sqrt(d2): print('8') else: print('0') if __name__ == '__main__': main_function()