結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 83 ms
16,044 KB
testcase_03 AC 77 ms
16,044 KB
testcase_04 AC 78 ms
16,048 KB
testcase_05 AC 77 ms
16,048 KB
testcase_06 AC 78 ms
16,048 KB
testcase_07 AC 78 ms
16,048 KB
testcase_08 AC 79 ms
16,048 KB
testcase_09 AC 77 ms
16,048 KB
testcase_10 AC 89 ms
18,548 KB
testcase_11 AC 90 ms
18,548 KB
testcase_12 AC 89 ms
18,548 KB
testcase_13 AC 89 ms
18,548 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 81 ms
17,052 KB
testcase_18 WA -
testcase_19 AC 80 ms
16,896 KB
testcase_20 WA -
testcase_21 AC 81 ms
17,052 KB
testcase_22 AC 78 ms
16,048 KB
testcase_23 AC 77 ms
16,048 KB
testcase_24 AC 78 ms
16,048 KB
testcase_25 AC 79 ms
16,308 KB
testcase_26 AC 89 ms
18,548 KB
testcase_27 AC 86 ms
18,548 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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