結果
| 問題 |
No.744 循環小数N桁目 Easy
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-05-04 04:15:14 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 341 ms |
| コンパイル使用メモリ | 24,320 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-03 08:57:49 |
| 合計ジャッジ時間 | 1,117 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%d", &N); N--;
| ^~~~~~~~~~~~~~~
ソースコード
// yukicoder: No.744 循環小数N桁目 Easy
// 2019.5.4 bal4u
#include <stdio.h>
char n[] = "285714";
int main()
{
int N;
scanf("%d", &N); N--;
printf("%c\n", n[N%6]);
return 0;
}
bal4u