結果

問題 No.643 Two Operations No.2
ユーザー letrangerjpletrangerjp
提出日時 2018-02-02 21:33:25
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 72 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 15,372 KB
最終ジャッジ日時 2023-08-30 02:03:14
合計ジャッジ時間 1,979 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,088 KB
testcase_01 AC 84 ms
15,320 KB
testcase_02 AC 83 ms
15,064 KB
testcase_03 AC 83 ms
15,268 KB
testcase_04 AC 81 ms
15,280 KB
testcase_05 AC 83 ms
15,128 KB
testcase_06 WA -
testcase_07 AC 82 ms
15,308 KB
testcase_08 WA -
testcase_09 AC 83 ms
15,240 KB
testcase_10 AC 81 ms
15,192 KB
testcase_11 AC 82 ms
15,164 KB
testcase_12 AC 81 ms
15,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x, y = gets.split.map &:to_i
p x == y ? 0 : y == 0 ? 1 : x == 0 ? 2 : -1
0