結果
問題 | No.746 7の倍数 |
ユーザー |
![]() |
提出日時 | 2019-06-22 21:50:52 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 10:17:35 |
合計ジャッジ時間 | 1,162 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <stdio.h>int main(){int N;scanf("%d",&N);char num[10]={"142857"};if(N==0){printf("0\n");return 0;}int i;printf("0.");for(i=1;i<=N;i++){printf("%c",num[(i-1)%6]);}printf("\n");return 0;}