結果
問題 |
No.746 7の倍数
|
ユーザー |
![]() |
提出日時 | 2024-02-04 20:26:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 310 ms |
コンパイル使用メモリ | 81,584 KB |
実行使用メモリ | 69,248 KB |
最終ジャッジ日時 | 2024-09-28 11:20:33 |
合計ジャッジ時間 | 2,375 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
N = int(input()) S = ["0","."] now = 1 if N == 0: print(0) exit() for i in range(N): now *= 10 S.append(str(now//7)) now %= 7 print("".join(S))