結果
問題 | No.1305 Speak of the Devil |
ユーザー |
![]() |
提出日時 | 2020-12-04 23:49:18 |
言語 | Swift (6.0.3) |
結果 |
AC
|
実行時間 | 9 ms / 2,000 ms |
コード長 | 749 bytes |
コンパイル時間 | 11,795 ms |
コンパイル使用メモリ | 127,308 KB |
実行使用メモリ | 9,472 KB |
最終ジャッジ日時 | 2024-09-15 09:12:29 |
合計ジャッジ時間 | 12,424 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
struct Scanner {private var elements = [String]()private var index = 0mutating func peek() -> String {while elements.count == index {elements = readLine()!.split(separator: " ").map(String.init)index = 0}return elements[index]}mutating func next() -> String {defer { index += 1 }return peek()}mutating func nextInt() -> Int {return Int(next())!}mutating func nextInts(_ n: Int) -> [Int] {return (0 ..< n).map { _ in nextInt() }}mutating func nextDouble() -> Double {return Double(next())!}}var scanner = Scanner()let p = scanner.nextInt()let q = scanner.nextInt()print(min(p, q))