結果

問題 No.441 和か積
コンテスト
ユーザー バカらっく
提出日時 2018-03-02 16:09:30
言語 Swift
(6.4)
コンパイル:
swiftc _filename_ -Ounchecked -o a.out
実行:
./a.out
結果
AC  
実行時間 4 ms / 1,000 ms
+ 154µs
コード長 272 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 388 ms
コンパイル使用メモリ 136,260 KB
実行使用メモリ 9,916 KB
最終ジャッジ日時 2026-10-02 14:25:29
合計ジャッジ時間 2,643 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

let inpt = readLine()!.split(separator: " ").map(String.init)
if(inpt[0] == "0" && inpt[1] == "0") {
    print("E")
} else if(inpt.contains("0") || inpt.contains("1")) {
    print("S")
} else if(inpt[0] == "2" && inpt[1] == "2") {
    print("E")
} else {
    print("P")
}
0