結果

問題 No.9011 数字を全て足そう(数字だけ)
ユーザー fuzzball
提出日時 2018-01-29 13:38:26
言語 Swift
(6.0.3)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 65 bytes
コンパイル時間 12,003 ms
コンパイル使用メモリ 124,588 KB
実行使用メモリ 9,600 KB
最終ジャッジ日時 2024-11-30 11:48:15
合計ジャッジ時間 13,103 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.swift:1:19: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
print(readLine()!.flatMap {Int(String($0))}.reduce(0) {$0 + $1})
                  ^
Main.swift:1:19: note: use 'compactMap(_:)' instead
print(readLine()!.flatMap {Int(String($0))}.reduce(0) {$0 + $1})
                  ^~~~~~~
                  compactMap

ソースコード

diff #

print(readLine()!.flatMap {Int(String($0))}.reduce(0) {$0 + $1})
0