結果

問題 No.441 和か積
ユーザー rite
提出日時 2017-01-18 16:43:42
言語 Ruby
(3.4.1)
結果
AC  
実行時間 94 ms / 1,000 ms
コード長 166 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-06-27 03:43:13
合計ジャッジ時間 4,303 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A,B=gets.split.map(&:to_i)
sum = A + B
product = A * B

if sum > product then
	print "S"
elsif product > sum then
	print "P"
elsif sum == product then 
	print "E"
end
0