結果
問題 | No.1232 2^x = x |
ユーザー | tikitaka1201 |
提出日時 | 2020-09-27 09:17:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 99 ms / 2,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 1,486 ms |
コンパイル使用メモリ | 86,440 KB |
実行使用メモリ | 75,972 KB |
最終ジャッジ日時 | 2023-09-12 23:02:36 |
合計ジャッジ時間 | 2,114 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,176 KB |
testcase_01 | AC | 99 ms
75,776 KB |
testcase_02 | AC | 95 ms
75,972 KB |
testcase_03 | AC | 96 ms
75,800 KB |
ソースコード
n=int(input()) from math import gcd def lcm(a,b): x= a*b // gcd(a,b) return x for _ in range(n): p=int(input()) if p==2: print(2) continue lcm1=lcm(p, p-1) print(lcm1-(p-2))