Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Narcissist/Swift/narcissist.swift
Normal file
13
Task/Narcissist/Swift/narcissist.swift
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#! /usr/bin/swift
|
||||
import Foundation
|
||||
|
||||
let script = CommandLine.arguments[0]
|
||||
print(script)
|
||||
let mytext = try? String.init(contentsOfFile: script, encoding: .utf8)
|
||||
|
||||
var enteredtext = readLine()
|
||||
if mytext == enteredtext {
|
||||
print("Accept")
|
||||
} else {
|
||||
print("Reject")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue