結果
問題 | No.443 GCD of Permutation |
ユーザー |
![]() |
提出日時 | 2016-11-12 00:00:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 1,315,380 KB |
最終ジャッジ日時 | 2024-11-25 10:31:18 |
合計ジャッジ時間 | 26,033 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 TLE * 17 MLE * 1 |
ソースコード
import math,itertoolsdef 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 xprint(g(input()))