結果

問題 No.441 和か積
ユーザー maimai
提出日時 2016-11-11 23:39:23
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 176 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 11,308 KB
実行使用メモリ 15,412 KB
最終ジャッジ日時 2023-08-26 21:57:37
合計ジャッジ時間 4,368 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,132 KB
testcase_01 WA -
testcase_02 AC 82 ms
15,292 KB
testcase_03 AC 83 ms
15,012 KB
testcase_04 AC 84 ms
15,268 KB
testcase_05 AC 84 ms
15,320 KB
testcase_06 AC 84 ms
15,340 KB
testcase_07 AC 84 ms
15,136 KB
testcase_08 AC 83 ms
15,064 KB
testcase_09 AC 83 ms
15,024 KB
testcase_10 AC 83 ms
15,156 KB
testcase_11 AC 83 ms
15,296 KB
testcase_12 AC 83 ms
15,252 KB
testcase_13 AC 83 ms
15,328 KB
testcase_14 AC 83 ms
15,092 KB
testcase_15 AC 83 ms
15,064 KB
testcase_16 AC 83 ms
15,316 KB
testcase_17 AC 83 ms
15,088 KB
testcase_18 AC 84 ms
15,128 KB
testcase_19 AC 83 ms
15,328 KB
testcase_20 AC 83 ms
15,204 KB
testcase_21 AC 82 ms
15,328 KB
testcase_22 AC 82 ms
15,356 KB
testcase_23 AC 83 ms
15,244 KB
testcase_24 AC 83 ms
15,412 KB
testcase_25 AC 83 ms
15,344 KB
testcase_26 AC 85 ms
15,336 KB
testcase_27 AC 85 ms
15,320 KB
testcase_28 AC 84 ms
15,244 KB
testcase_29 AC 81 ms
15,244 KB
testcase_30 AC 83 ms
15,156 KB
testcase_31 AC 83 ms
15,140 KB
testcase_32 AC 83 ms
15,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b = gets.split.map(&:to_i)

if a==0 && b==0
    puts "E"
elsif a==0 || b==0
    puts "S"
elsif 3<=a && 3<=b
    puts "P"
elsif a==2 && b==2
    puts "E"
else
    puts "S"
end
0