結果

問題 No.528 10^9と10^9+7と回文
ユーザー letrangerjpletrangerjp
提出日時 2017-06-10 18:31:23
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 83 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,948 KB
実行使用メモリ 18,644 KB
最終ジャッジ日時 2023-10-24 20:33:34
合計ジャッジ時間 3,952 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 85 ms
16,048 KB
testcase_03 AC 84 ms
16,048 KB
testcase_04 AC 85 ms
16,048 KB
testcase_05 AC 85 ms
16,048 KB
testcase_06 AC 84 ms
16,048 KB
testcase_07 AC 85 ms
16,048 KB
testcase_08 AC 85 ms
16,048 KB
testcase_09 AC 85 ms
16,048 KB
testcase_10 AC 97 ms
18,552 KB
testcase_11 AC 98 ms
18,552 KB
testcase_12 AC 99 ms
18,552 KB
testcase_13 AC 98 ms
18,552 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 92 ms
17,056 KB
testcase_18 WA -
testcase_19 AC 90 ms
16,900 KB
testcase_20 WA -
testcase_21 AC 92 ms
17,152 KB
testcase_22 AC 86 ms
16,048 KB
testcase_23 AC 85 ms
16,048 KB
testcase_24 AC 84 ms
16,048 KB
testcase_25 AC 85 ms
16,308 KB
testcase_26 AC 98 ms
18,552 KB
testcase_27 AC 94 ms
18,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=gets[/.{#{$_.size/2}}/].to_i-($&.reverse>$'?2:1)+10**~-$'.size
p a%M=10**9,a%=M+7
0