結果
問題 | No.744 循環小数N桁目 Easy |
ユーザー | ohreitetsu |
提出日時 | 2018-10-19 21:29:45 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 1,276 ms |
コンパイル使用メモリ | 62,656 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-12 00:10:40 |
合計ジャッジ時間 | 2,144 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,384 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 2 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 2 ms
4,380 KB |
testcase_07 | AC | 1 ms
4,380 KB |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | AC | 2 ms
4,380 KB |
コンパイルメッセージ
main.cpp: 関数 ‘int main(int, char**)’ 内: main.cpp:6:17: 警告: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 6 | char *S="285714"; | ^~~~~~~~
ソースコード
#include <iostream> using namespace std; typedef long long LL; int main(int argc, char* argv[]) { char *S="285714"; LL N; cin>>N; LL n=N%6; cout<<S[n-1]<<endl; return 0; }