結果
問題 |
No.744 循環小数N桁目 Easy
|
ユーザー |
|
提出日時 | 2019-07-13 21:31:40 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 15:07:33 |
合計ジャッジ時間 | 746 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 7 |
ソースコード
/******************************************************* * yukicoder 循環小数N桁目 Easy * 2019.07.13 Kamato02 *******************************************************/ #include<stdio.h> int main() { char line[15]; int N; sprintf(line, "%f", 2.0 / 7.0); printf("%s",line); scanf("%d", &N); printf("%c", line[N % 6 + 1]); return (0); }