結果

問題 No.321 (P,Q)-サンタと街の子供たち
ユーザー angel_p_57angel_p_57
提出日時 2015-12-14 12:03:50
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 442 ms
コンパイル使用メモリ 11,444 KB
実行使用メモリ 26,048 KB
最終ジャッジ日時 2023-10-13 16:24:46
合計ジャッジ時間 8,872 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 82 ms
15,124 KB
testcase_02 AC 82 ms
15,156 KB
testcase_03 AC 82 ms
15,200 KB
testcase_04 AC 82 ms
15,128 KB
testcase_05 WA -
testcase_06 AC 81 ms
15,200 KB
testcase_07 AC 81 ms
15,220 KB
testcase_08 AC 81 ms
15,156 KB
testcase_09 AC 81 ms
15,124 KB
testcase_10 AC 81 ms
15,088 KB
testcase_11 AC 82 ms
15,320 KB
testcase_12 AC 82 ms
15,016 KB
testcase_13 AC 81 ms
15,388 KB
testcase_14 AC 164 ms
20,456 KB
testcase_15 AC 224 ms
25,880 KB
testcase_16 AC 134 ms
19,496 KB
testcase_17 AC 82 ms
15,088 KB
testcase_18 AC 146 ms
20,328 KB
testcase_19 AC 166 ms
21,716 KB
testcase_20 AC 217 ms
25,912 KB
testcase_21 AC 161 ms
21,184 KB
testcase_22 AC 107 ms
17,008 KB
testcase_23 AC 201 ms
23,948 KB
testcase_24 AC 114 ms
17,276 KB
testcase_25 AC 154 ms
21,136 KB
testcase_26 AC 213 ms
25,344 KB
testcase_27 AC 174 ms
22,716 KB
testcase_28 AC 172 ms
22,336 KB
testcase_29 AC 224 ms
26,048 KB
testcase_30 AC 85 ms
15,372 KB
testcase_31 AC 86 ms
15,472 KB
testcase_32 AC 154 ms
20,420 KB
testcase_33 AC 147 ms
20,308 KB
testcase_34 AC 129 ms
18,832 KB
testcase_35 AC 183 ms
23,088 KB
testcase_36 AC 86 ms
15,352 KB
testcase_37 AC 163 ms
21,424 KB
testcase_38 AC 146 ms
20,364 KB
testcase_39 AC 104 ms
16,568 KB
testcase_40 AC 212 ms
25,180 KB
testcase_41 AC 117 ms
17,544 KB
testcase_42 AC 194 ms
23,872 KB
testcase_43 AC 136 ms
19,196 KB
testcase_44 AC 174 ms
22,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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