結果
問題 | No.892 タピオカ |
ユーザー |
![]() |
提出日時 | 2019-09-27 21:49:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 1,000 ms |
コード長 | 988 bytes |
コンパイル時間 | 313 ms |
コンパイル使用メモリ | 81,900 KB |
実行使用メモリ | 57,192 KB |
最終ジャッジ日時 | 2024-09-24 22:51:13 |
合計ジャッジ時間 | 1,125 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#!usr/bin/env python3from collections import defaultdict,dequefrom heapq import heappush, heappopimport sysimport mathimport bisectimport randomdef LI(): return [int(x) for x in sys.stdin.readline().split()]def I(): return int(sys.stdin.readline())def LS():return [list(x) for x in sys.stdin.readline().split()]def S():res = list(sys.stdin.readline())if res[-1] == "\n":return res[:-1]return resdef IR(n):return [I() for i in range(n)]def LIR(n):return [LI() for i in range(n)]def SR(n):return [S() for i in range(n)]def LSR(n):return [LS() for i in range(n)]sys.setrecursionlimit(1000000)mod = 1000000007#Adef A():a,b,c,d,e,f = LI()s = pow(a,b,2)+pow(c,d,2)+pow(e,f,2)if s&1:print(":-(")else:print(":-)")return#Bdef B():return#Cdef C():return#Ddef D():return#Edef E():return#Fdef F():return#Solveif __name__ == "__main__":A()