結果

問題 No.415 ぴょん
ユーザー simansiman
提出日時 2020-10-14 04:03:29
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 87 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 15,264 KB
最終ジャッジ日時 2023-09-28 00:27:24
合計ジャッジ時間 4,111 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,168 KB
testcase_01 AC 72 ms
15,248 KB
testcase_02 AC 70 ms
15,028 KB
testcase_03 AC 69 ms
15,252 KB
testcase_04 WA -
testcase_05 AC 69 ms
15,028 KB
testcase_06 WA -
testcase_07 AC 70 ms
15,180 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 69 ms
15,056 KB
testcase_11 WA -
testcase_12 AC 70 ms
14,936 KB
testcase_13 AC 70 ms
15,096 KB
testcase_14 AC 70 ms
15,008 KB
testcase_15 AC 69 ms
14,988 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 68 ms
14,996 KB
testcase_21 AC 69 ms
15,012 KB
testcase_22 AC 69 ms
15,216 KB
testcase_23 WA -
testcase_24 AC 71 ms
15,004 KB
testcase_25 AC 69 ms
15,188 KB
testcase_26 AC 69 ms
15,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N, D = gets.split.map(&:to_i)

if N.gcd(D) == 1
  puts N - 1
else
  puts N / D - 1
end
0