結果
問題 | No.892 タピオカ |
ユーザー | naoe123 |
提出日時 | 2020-01-04 13:23:00 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 23,956 KB |
最終ジャッジ日時 | 2024-05-02 08:09:52 |
合計ジャッジ時間 | 2,791 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 33 ms
17,692 KB |
testcase_01 | AC | 31 ms
10,752 KB |
testcase_02 | AC | 30 ms
10,752 KB |
testcase_03 | AC | 61 ms
11,136 KB |
testcase_04 | TLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
ソースコード
a=list(map(int,input().split())) def pow_k(x, n): """ O(log n) """ if n == 0: return 1 K = 1 while n > 1: if n % 2 != 0: K *= x x *= x n //= 2 return K * x A=a[::2] B=a[1::2] summary=0 for i in range(3): summary+=pow_k(A[i], B[i]) if summary%2==0: print(':-)') else: print(':-(')