結果

問題 No.744 循環小数N桁目 Easy
ユーザー aaaaaaiu
提出日時 2019-07-28 23:35:37
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 2,131 ms
コンパイル使用メモリ 193,008 KB
最終ジャッジ日時 2025-01-07 09:51:31
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    string s = "285714";
    int n;
    cin >> n;
    cout << s[(n-1)%6] << endl;
    return 0;
}
0