結果
問題 |
No.744 循環小数N桁目 Easy
|
ユーザー |
![]() |
提出日時 | 2019-08-21 17:51:22 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 30,336 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 10:48:58 |
合計ジャッジ時間 | 807 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> int main(void) { char str[200]="285714"; int disp; scanf("%d",&disp); while(disp>5) { disp-=6; } printf("%c",str[disp-1]); }