結果

問題 No.1264 010
ユーザー semisagisemisagi
提出日時 2020-10-23 22:02:02
言語 Swift
(5.10.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 669 bytes
コンパイル時間 6,713 ms
コンパイル使用メモリ 127,796 KB
実行使用メモリ 7,784 KB
最終ジャッジ日時 2023-09-28 15:46:58
合計ジャッジ時間 7,882 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,728 KB
testcase_01 AC 3 ms
7,688 KB
testcase_02 AC 3 ms
7,600 KB
testcase_03 AC 4 ms
7,744 KB
testcase_04 AC 3 ms
7,764 KB
testcase_05 AC 3 ms
7,664 KB
testcase_06 AC 4 ms
7,716 KB
testcase_07 AC 3 ms
7,592 KB
testcase_08 AC 3 ms
7,644 KB
testcase_09 AC 3 ms
7,720 KB
testcase_10 AC 3 ms
7,660 KB
testcase_11 AC 3 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

struct Scanner {
    private var elements = [String]()
    private var index = 0

    mutating func peek() -> String {
        while elements.count == index {
            elements = readLine()!.split(separator: " ").map(String.init)
            index = 0
        }
        return elements[index]
    }

    mutating func next() -> String {
        let value = peek()
        index += 1
        return value
    }

    mutating func nextInt() -> Int {
        return Int(next())!
    }

    mutating func nextDouble() -> Double {
        return Double(next())!
    }
}

var scanner = Scanner()

let n = scanner.nextInt()

print("01" + String(repeating: "0", count: n))
0