Sーwーiーfーtーコード2
関連タイピング
-
プレイ回数478記号278打
-
プレイ回数381記号258打
-
プレイ回数126長文60秒
-
プレイ回数146記号323打
-
プレイ回数109長文515打
-
プレイ回数301数字269打
-
プレイ回数131長文675打
-
プレイ回数239長文680打
問題文
ふりがな非表示
ふりがな表示
(for)
for
(let individualscores =)
let individualScores =
([75, 43, 103, 87, 12])
[75, 43, 103, 87, 12]
(var teamscore = 0)
var teamScore = 0
(for score in individualscores {)
for score in individualScores {
(print(score) })
print(score) }
(if)
if
(let individualscores =)
let individualScores =
([75, 43, 103, 87, 12])
[75, 43, 103, 87, 12]
(var teamscore = 0)
var teamScore = 0
(for score in individualscores {)
for score in individualScores {
(if score > 50 {)
if score > 50 {
(teamscore += 3)
teamScore += 3
(} else { teamscore += 1)
} else { teamScore += 1
(} })
} }
(print(teamscore))
print(teamScore)