結果

問題 No.747 循環小数N桁目 Hard
ユーザー simansiman
提出日時 2022-07-15 08:57:49
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 16,360 KB
最終ジャッジ日時 2023-09-09 10:24:50
合計ジャッジ時間 15,530 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,272 KB
testcase_01 WA -
testcase_02 AC 85 ms
15,404 KB
testcase_03 AC 84 ms
15,504 KB
testcase_04 AC 85 ms
15,448 KB
testcase_05 WA -
testcase_06 AC 84 ms
15,512 KB
testcase_07 AC 85 ms
15,264 KB
testcase_08 AC 84 ms
15,252 KB
testcase_09 WA -
testcase_10 AC 84 ms
15,428 KB
testcase_11 AC 86 ms
15,468 KB
testcase_12 AC 83 ms
15,424 KB
testcase_13 AC 86 ms
15,528 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 83 ms
15,504 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 85 ms
15,508 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 85 ms
15,308 KB
testcase_24 AC 86 ms
15,516 KB
testcase_25 WA -
testcase_26 AC 85 ms
15,496 KB
testcase_27 AC 84 ms
15,528 KB
testcase_28 AC 84 ms
15,388 KB
testcase_29 AC 86 ms
15,292 KB
testcase_30 AC 84 ms
15,264 KB
testcase_31 AC 84 ms
15,452 KB
testcase_32 WA -
testcase_33 AC 91 ms
15,836 KB
testcase_34 AC 86 ms
15,792 KB
testcase_35 AC 84 ms
15,824 KB
testcase_36 AC 87 ms
15,784 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 88 ms
15,912 KB
testcase_41 AC 86 ms
16,072 KB
testcase_42 AC 87 ms
16,080 KB
testcase_43 WA -
testcase_44 AC 87 ms
15,796 KB
testcase_45 AC 86 ms
16,016 KB
testcase_46 WA -
testcase_47 AC 87 ms
15,952 KB
testcase_48 AC 86 ms
15,972 KB
testcase_49 AC 87 ms
16,028 KB
testcase_50 AC 86 ms
15,892 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 AC 90 ms
16,204 KB
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 91 ms
16,004 KB
testcase_59 AC 87 ms
15,940 KB
testcase_60 AC 88 ms
16,360 KB
testcase_61 AC 88 ms
15,884 KB
testcase_62 AC 88 ms
15,968 KB
testcase_63 AC 86 ms
15,808 KB
testcase_64 WA -
testcase_65 WA -
testcase_66 WA -
testcase_67 WA -
testcase_68 WA -
testcase_69 AC 87 ms
15,852 KB
testcase_70 AC 87 ms
15,780 KB
testcase_71 AC 88 ms
15,796 KB
testcase_72 WA -
testcase_73 WA -
testcase_74 AC 87 ms
15,864 KB
testcase_75 WA -
testcase_76 WA -
testcase_77 AC 86 ms
15,864 KB
testcase_78 WA -
testcase_79 AC 87 ms
15,936 KB
testcase_80 AC 89 ms
15,876 KB
testcase_81 AC 88 ms
15,804 KB
testcase_82 WA -
testcase_83 AC 87 ms
15,740 KB
testcase_84 WA -
testcase_85 WA -
testcase_86 WA -
testcase_87 WA -
testcase_88 AC 86 ms
15,940 KB
testcase_89 AC 85 ms
15,864 KB
testcase_90 WA -
testcase_91 AC 86 ms
16,024 KB
testcase_92 AC 87 ms
15,848 KB
testcase_93 AC 88 ms
16,048 KB
testcase_94 AC 88 ms
16,156 KB
testcase_95 AC 88 ms
16,228 KB
testcase_96 AC 89 ms
16,108 KB
testcase_97 AC 89 ms
16,168 KB
testcase_98 AC 90 ms
16,068 KB
testcase_99 WA -
testcase_100 AC 89 ms
15,940 KB
testcase_101 WA -
testcase_102 AC 87 ms
16,072 KB
testcase_103 AC 88 ms
15,848 KB
testcase_104 AC 88 ms
16,036 KB
testcase_105 WA -
testcase_106 AC 88 ms
16,000 KB
testcase_107 AC 87 ms
16,092 KB
testcase_108 AC 88 ms
15,960 KB
testcase_109 WA -
testcase_110 AC 87 ms
15,952 KB
testcase_111 AC 89 ms
15,948 KB
testcase_112 AC 87 ms
16,100 KB
testcase_113 WA -
testcase_114 WA -
testcase_115 WA -
testcase_116 WA -
testcase_117 AC 87 ms
16,096 KB
testcase_118 AC 88 ms
16,024 KB
testcase_119 AC 87 ms
16,016 KB
testcase_120 WA -
testcase_121 AC 86 ms
15,964 KB
testcase_122 AC 87 ms
15,896 KB
testcase_123 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
K = gets.to_i

d = (N % 6).pow(K % 2, 6)


pp [2, 8, 5, 7, 1, 4][(d - 1) % 6]
0