結果

問題 No.736 約比
ユーザー MaboyMaboy
提出日時 2021-06-22 12:45:25
言語 Swift
(5.10.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 7,247 ms
コンパイル使用メモリ 181,724 KB
実行使用メモリ 13,932 KB
最終ジャッジ日時 2023-09-05 13:09:54
合計ジャッジ時間 9,205 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
13,352 KB
testcase_01 WA -
testcase_02 AC 6 ms
13,888 KB
testcase_03 WA -
testcase_04 AC 6 ms
13,528 KB
testcase_05 AC 6 ms
13,476 KB
testcase_06 AC 6 ms
13,556 KB
testcase_07 AC 6 ms
13,524 KB
testcase_08 AC 6 ms
13,508 KB
testcase_09 AC 6 ms
13,524 KB
testcase_10 AC 6 ms
13,756 KB
testcase_11 AC 6 ms
13,324 KB
testcase_12 AC 6 ms
13,280 KB
testcase_13 AC 6 ms
13,664 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 6 ms
13,320 KB
testcase_17 AC 6 ms
13,864 KB
testcase_18 AC 6 ms
13,312 KB
testcase_19 AC 6 ms
13,272 KB
testcase_20 AC 7 ms
13,532 KB
testcase_21 AC 6 ms
13,500 KB
testcase_22 AC 6 ms
13,848 KB
testcase_23 AC 6 ms
13,820 KB
testcase_24 AC 6 ms
13,532 KB
testcase_25 AC 6 ms
13,268 KB
testcase_26 AC 6 ms
13,552 KB
testcase_27 AC 6 ms
13,388 KB
testcase_28 WA -
testcase_29 AC 6 ms
13,520 KB
testcase_30 AC 7 ms
13,272 KB
testcase_31 AC 6 ms
13,216 KB
testcase_32 AC 5 ms
13,656 KB
testcase_33 AC 6 ms
13,884 KB
testcase_34 AC 6 ms
13,656 KB
testcase_35 AC 5 ms
13,376 KB
testcase_36 WA -
testcase_37 AC 6 ms
13,828 KB
testcase_38 AC 6 ms
13,528 KB
testcase_39 AC 6 ms
13,908 KB
testcase_40 AC 6 ms
13,664 KB
testcase_41 AC 6 ms
13,324 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 6 ms
13,280 KB
testcase_46 AC 6 ms
13,560 KB
testcase_47 AC 6 ms
13,788 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 6 ms
13,932 KB
testcase_51 WA -
testcase_52 AC 6 ms
13,288 KB
testcase_53 AC 6 ms
13,344 KB
testcase_54 AC 7 ms
13,520 KB
testcase_55 AC 6 ms
13,276 KB
testcase_56 AC 6 ms
13,248 KB
testcase_57 WA -
testcase_58 WA -
testcase_59 AC 6 ms
13,504 KB
testcase_60 AC 6 ms
13,520 KB
testcase_61 AC 6 ms
13,504 KB
testcase_62 AC 6 ms
13,804 KB
testcase_63 WA -
testcase_64 AC 6 ms
13,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation
let n = Int(readLine()!)
let s = readLine()!
var a = s.split(separator: " ").map{Int($0)!}
var (i,j) = (a.sorted()[0],a.sorted()[1])
while j != 0{
    (i,j) = (j,i%j)
}
a = a.map{$0 / abs(i)}
print(a.map{String($0)}.joined(separator: ":"))
0