結果

問題 No.746 7の倍数
ユーザー PachicobuePachicobue
提出日時 2018-10-19 21:50:27
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 449 ms
コンパイル使用メモリ 68,068 KB
最終ジャッジ日時 2025-01-06 14:38:16
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
int main()
{
    int N;
    std::cin >> N;
    const std::string s = "142857";
    if(N==0){return std::cout << "0"<<std::endl, 0;}
    std::cout << "0.";
    for(int i =0; i < N; i++){std::cout << s[i%6];}
    std::cout << std::endl;
    return 0;
}
0