結果

問題 No.443 GCD of Permutation
ユーザー kimiyukikimiyuki
提出日時 2016-11-11 23:16:48
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 200 bytes
コンパイル時間 1,135 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 10,428 KB
最終ジャッジ日時 2023-08-17 03:26:13
合計ジャッジ時間 10,476 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,168 KB
testcase_01 AC 26 ms
10,184 KB
testcase_02 AC 25 ms
10,192 KB
testcase_03 AC 26 ms
10,280 KB
testcase_04 AC 26 ms
10,424 KB
testcase_05 AC 26 ms
10,284 KB
testcase_06 AC 26 ms
10,316 KB
testcase_07 AC 26 ms
10,284 KB
testcase_08 AC 25 ms
10,320 KB
testcase_09 AC 27 ms
10,192 KB
testcase_10 AC 27 ms
10,328 KB
testcase_11 AC 27 ms
10,284 KB
testcase_12 AC 26 ms
10,096 KB
testcase_13 AC 26 ms
10,316 KB
testcase_14 AC 744 ms
10,256 KB
testcase_15 AC 229 ms
10,232 KB
testcase_16 AC 99 ms
10,160 KB
testcase_17 AC 132 ms
10,132 KB
testcase_18 AC 704 ms
10,384 KB
testcase_19 AC 136 ms
10,300 KB
testcase_20 AC 648 ms
10,412 KB
testcase_21 AC 229 ms
10,364 KB
testcase_22 AC 27 ms
10,368 KB
testcase_23 AC 26 ms
10,344 KB
testcase_24 AC 26 ms
10,292 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 321 ms
10,372 KB
testcase_28 WA -
testcase_29 AC 744 ms
10,272 KB
testcase_30 AC 743 ms
10,272 KB
testcase_31 AC 803 ms
10,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python2
import random
import fractions
n = list(raw_input())
d = int(''.join(n))
for i in range(200):
    random.shuffle(n)
    x = int(''.join(n))
    d = fractions.gcd(d, x)
print(d)
0