結果
問題 | No.746 7の倍数 |
ユーザー | ミドリムシ |
提出日時 | 2018-04-03 11:55:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 705 ms |
コンパイル使用メモリ | 82,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 08:29:17 |
合計ジャッジ時間 | 1,947 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <iostream> #include <algorithm> #include <random> using namespace std; int main(){ int N; cin >> N; if(N){ cout << "0."; for(int i = 0; i < N; i++){ cout << "142857"[i % 6]; } cout << endl; }else{ cout << 0 << endl; } }