結果

問題 No.321 (P,Q)-サンタと街の子供たち
ユーザー cielciel
提出日時 2015-12-14 00:17:44
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 93 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 11,220 KB
実行使用メモリ 15,484 KB
最終ジャッジ日時 2023-10-13 15:05:41
合計ジャッジ時間 7,804 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 79 ms
15,080 KB
testcase_02 AC 80 ms
15,220 KB
testcase_03 AC 79 ms
15,284 KB
testcase_04 WA -
testcase_05 RE -
testcase_06 AC 81 ms
15,296 KB
testcase_07 AC 79 ms
15,080 KB
testcase_08 AC 82 ms
15,084 KB
testcase_09 AC 79 ms
15,160 KB
testcase_10 AC 81 ms
15,292 KB
testcase_11 WA -
testcase_12 AC 78 ms
15,128 KB
testcase_13 AC 80 ms
15,164 KB
testcase_14 WA -
testcase_15 AC 197 ms
15,356 KB
testcase_16 AC 128 ms
15,352 KB
testcase_17 AC 80 ms
15,132 KB
testcase_18 AC 135 ms
15,272 KB
testcase_19 WA -
testcase_20 AC 193 ms
15,248 KB
testcase_21 WA -
testcase_22 AC 99 ms
15,268 KB
testcase_23 AC 177 ms
15,404 KB
testcase_24 AC 105 ms
15,168 KB
testcase_25 WA -
testcase_26 AC 188 ms
15,360 KB
testcase_27 WA -
testcase_28 AC 163 ms
15,200 KB
testcase_29 AC 200 ms
15,248 KB
testcase_30 AC 85 ms
15,076 KB
testcase_31 AC 83 ms
15,240 KB
testcase_32 AC 142 ms
15,200 KB
testcase_33 WA -
testcase_34 AC 122 ms
15,400 KB
testcase_35 WA -
testcase_36 AC 85 ms
15,092 KB
testcase_37 AC 151 ms
15,268 KB
testcase_38 AC 137 ms
15,344 KB
testcase_39 WA -
testcase_40 AC 192 ms
15,272 KB
testcase_41 WA -
testcase_42 AC 172 ms
15,268 KB
testcase_43 AC 127 ms
15,268 KB
testcase_44 AC 166 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b=gets.split.map &:to_i
g=a.gcd b
gets;p $<.count{|e|x,y=e.split.map &:to_i;x%g==0&&y%g==0}
0