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