結果

問題 No.744 循環小数N桁目 Easy
ユーザー takubokudori
提出日時 2018-10-31 15:40:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 55,528 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-19 12:23:27
合計ジャッジ時間 1,179 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 1 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    5 |     char *s="285714";
      |             ^~~~~~~~

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void){
    char *s="285714";
    int k;
    cin>>k;
    cout<<s[(k-1)%7]<<endl;
    return 0;
}
0