結果

問題 No.744 循環小数N桁目 Easy
ユーザー Haruki0804SHaruki0804S
提出日時 2018-10-19 22:16:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 162 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 29,500 KB
最終ジャッジ日時 2023-08-12 01:17:25
合計ジャッジ時間 4,982 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
29,440 KB
testcase_01 AC 149 ms
29,500 KB
testcase_02 AC 162 ms
29,464 KB
testcase_03 AC 146 ms
29,448 KB
testcase_04 AC 145 ms
29,420 KB
testcase_05 AC 140 ms
29,496 KB
testcase_06 AC 142 ms
29,484 KB
testcase_07 AC 147 ms
29,456 KB
testcase_08 AC 145 ms
29,476 KB
testcase_09 AC 137 ms
29,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
import math
N=input()
n1=int(N)
n=n1%6
x=pow(10,n)

x1=2*x

a=np.floor(x1/7)
y=a%10
y1=int(y)
print(y1)



0