結果

問題 No.744 循環小数N桁目 Easy
ユーザー 👑 obakyanobakyan
提出日時 2019-03-21 23:18:35
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 74,760 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 05:45:55
合計ジャッジ時間 1,261 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,348 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
4,348 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <deque>

int main()
{
    std::vector<int> a = {2, 8, 5, 7, 1, 4};
    int d;
    std::cin >> d;
    std::cout << a[(d - 1) % 7] << std::endl;
    return 0;
}
0