結果
問題 |
No.746 7の倍数
|
ユーザー |
![]() |
提出日時 | 2018-10-19 22:31:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 436 ms |
コンパイル使用メモリ | 54,132 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-18 21:30:17 |
合計ジャッジ時間 | 1,213 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | WA * 20 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ int c; double ans,n,a,m=1; cin>>n; for (int i=1; i<=n; i++) { m*=10; } c=m/7; a=c; ans=a/m; cout<<ans<<endl; }