結果
問題 | No.443 GCD of Permutation |
ユーザー | ieneko18 |
提出日時 | 2016-11-12 00:00:14 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 10,656 KB |
実行使用メモリ | 816,372 KB |
最終ジャッジ日時 | 2023-08-16 20:25:56 |
合計ジャッジ時間 | 3,007 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 14 ms
8,460 KB |
testcase_01 | AC | 14 ms
8,184 KB |
testcase_02 | AC | 13 ms
8,372 KB |
testcase_03 | AC | 14 ms
8,440 KB |
testcase_04 | AC | 39 ms
13,304 KB |
testcase_05 | AC | 15 ms
8,336 KB |
testcase_06 | AC | 13 ms
8,184 KB |
testcase_07 | AC | 14 ms
8,268 KB |
testcase_08 | AC | 14 ms
8,180 KB |
testcase_09 | AC | 14 ms
8,376 KB |
testcase_10 | AC | 13 ms
8,292 KB |
testcase_11 | AC | 14 ms
8,320 KB |
testcase_12 | AC | 14 ms
8,212 KB |
testcase_13 | AC | 14 ms
8,140 KB |
testcase_14 | MLE | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
ソースコード
import math,itertools def g(e): n=list(itertools.permutations(e)) for i in range(len(n)): n[i]=int("".join(n[i])) x=n[0] for i in range(1,len(n)): x=math.gcd(n[i],x) return x print(g(input()))