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