結果

問題 No.321 (P,Q)-サンタと街の子供たち
ユーザー angel_p_57angel_p_57
提出日時 2015-12-14 11:45:05
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 116 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 25,972 KB
最終ジャッジ日時 2023-10-13 16:24:37
合計ジャッジ時間 7,677 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 70 ms
15,176 KB
testcase_02 AC 69 ms
15,040 KB
testcase_03 AC 70 ms
15,148 KB
testcase_04 AC 68 ms
15,324 KB
testcase_05 RE -
testcase_06 AC 68 ms
15,148 KB
testcase_07 AC 70 ms
15,124 KB
testcase_08 AC 69 ms
15,132 KB
testcase_09 AC 68 ms
15,052 KB
testcase_10 AC 68 ms
15,124 KB
testcase_11 AC 71 ms
15,080 KB
testcase_12 AC 70 ms
15,264 KB
testcase_13 AC 70 ms
15,104 KB
testcase_14 AC 139 ms
20,400 KB
testcase_15 AC 192 ms
25,972 KB
testcase_16 AC 113 ms
19,212 KB
testcase_17 AC 68 ms
15,024 KB
testcase_18 AC 127 ms
20,172 KB
testcase_19 AC 147 ms
21,740 KB
testcase_20 AC 194 ms
25,892 KB
testcase_21 AC 143 ms
21,276 KB
testcase_22 AC 91 ms
16,860 KB
testcase_23 AC 175 ms
24,136 KB
testcase_24 AC 97 ms
17,392 KB
testcase_25 AC 133 ms
20,852 KB
testcase_26 AC 178 ms
25,348 KB
testcase_27 AC 147 ms
22,568 KB
testcase_28 AC 145 ms
22,460 KB
testcase_29 AC 191 ms
25,816 KB
testcase_30 AC 73 ms
15,452 KB
testcase_31 AC 73 ms
15,412 KB
testcase_32 AC 134 ms
20,432 KB
testcase_33 AC 131 ms
20,344 KB
testcase_34 AC 120 ms
18,664 KB
testcase_35 AC 163 ms
23,132 KB
testcase_36 AC 71 ms
15,352 KB
testcase_37 AC 140 ms
21,572 KB
testcase_38 AC 128 ms
20,208 KB
testcase_39 AC 86 ms
16,652 KB
testcase_40 AC 178 ms
25,276 KB
testcase_41 AC 99 ms
17,708 KB
testcase_42 AC 164 ms
23,740 KB
testcase_43 AC 113 ms
19,108 KB
testcase_44 AC 155 ms
22,856 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c,g=p~-$<.read.split(?\n).count{|s|x,y=s.split.map &:to_i;g ?y&&x%g<1&&y%g<1&&(x-y)*c/g%2<1:(g=x.gcd y;c=x*y/g/g%2)}
0