結果
問題 | No.857 素振り |
ユーザー | Maboy |
提出日時 | 2021-06-18 16:00:19 |
言語 | Swift (5.10.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 7,745 ms |
コンパイル使用メモリ | 128,372 KB |
実行使用メモリ | 8,128 KB |
最終ジャッジ日時 | 2023-09-04 11:15:06 |
合計ジャッジ時間 | 10,611 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 4 ms
8,128 KB |
testcase_01 | AC | 4 ms
8,124 KB |
testcase_02 | AC | 3 ms
8,128 KB |
testcase_03 | AC | 3 ms
8,092 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
let n = readLine()!.split(separator: " ").map{Int($0)!} var z = Array<Int>(1...n[2]) var d = z.count for i in n[0...1]{ if z.contains(i){ d -= 1 } } print(d)