結果
問題 | No.1027 U+1F4A0 |
ユーザー |
|
提出日時 | 2021-05-12 15:12:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 423 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-22 21:34:06 |
合計ジャッジ時間 | 1,649 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 7 |
ソースコード
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() ntp = lambda: tuple(map(int, stdin.readline().split())) mod = 10 * 9 + 7 inf = 2 << 60 D = na() if D[0] == D[1] or 2 * D[0] ** 2 == D[1] ** 2: ans = 4 elif D[0] < D[1] and D[1] ** 2 < 2 * D[0] ** 2: ans = 8 else: ans = 0 print(ans)