結果

問題 No.744 循環小数N桁目 Easy
ユーザー Pachicobue
提出日時 2018-10-19 21:41:55
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 67,440 KB
最終ジャッジ日時 2025-01-06 14:37:47
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
int main()
{
    int N;
    std::cin >> N;N--;
    const std::string ans = "285714";
    std::cout << ans[N%6]<<std::endl;
    return 0;
}
0