結果

問題 No.443 GCD of Permutation
ユーザー finefine
提出日時 2016-11-11 23:13:46
言語 Ruby
(3.2.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 115 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 11,192 KB
実行使用メモリ 17,760 KB
最終ジャッジ日時 2023-08-17 03:14:53
合計ジャッジ時間 5,446 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,092 KB
testcase_01 AC 82 ms
15,144 KB
testcase_02 AC 82 ms
15,200 KB
testcase_03 AC 81 ms
15,260 KB
testcase_04 AC 81 ms
15,020 KB
testcase_05 AC 82 ms
15,164 KB
testcase_06 AC 80 ms
15,092 KB
testcase_07 AC 82 ms
15,112 KB
testcase_08 AC 83 ms
15,040 KB
testcase_09 AC 82 ms
15,256 KB
testcase_10 AC 82 ms
15,120 KB
testcase_11 AC 80 ms
15,108 KB
testcase_12 AC 81 ms
15,332 KB
testcase_13 AC 82 ms
15,340 KB
testcase_14 AC 160 ms
17,680 KB
testcase_15 AC 105 ms
16,116 KB
testcase_16 AC 91 ms
15,772 KB
testcase_17 AC 93 ms
15,756 KB
testcase_18 AC 150 ms
17,188 KB
testcase_19 AC 95 ms
15,696 KB
testcase_20 AC 147 ms
17,080 KB
testcase_21 AC 111 ms
16,116 KB
testcase_22 AC 81 ms
15,356 KB
testcase_23 AC 81 ms
15,156 KB
testcase_24 AC 81 ms
15,068 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 117 ms
16,320 KB
testcase_28 WA -
testcase_29 AC 159 ms
17,500 KB
testcase_30 AC 162 ms
17,760 KB
testcase_31 AC 168 ms
17,644 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp
ans = s.to_i
a = s.split('')
100.times{|i|
    a.shuffle!
    ans = ans.gcd(a.join.to_i)
    }
p ans
0