結果

問題 No.744 循環小数N桁目 Easy
ユーザー Haruki0804SHaruki0804S
提出日時 2018-10-19 22:16:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 548 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,276 KB
最終ジャッジ日時 2024-04-29 16:06:26
合計ジャッジ時間 6,798 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 543 ms
43,660 KB
testcase_01 AC 525 ms
44,276 KB
testcase_02 AC 548 ms
44,052 KB
testcase_03 AC 546 ms
44,052 KB
testcase_04 AC 540 ms
43,928 KB
testcase_05 AC 541 ms
43,668 KB
testcase_06 AC 536 ms
43,684 KB
testcase_07 AC 537 ms
43,668 KB
testcase_08 AC 539 ms
43,772 KB
testcase_09 AC 533 ms
43,916 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