結果
| 問題 |
No.746 7の倍数
|
| コンテスト | |
| ユーザー |
clocklr
|
| 提出日時 | 2018-10-19 23:45:58 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 199 ms / 2,000 ms |
| コード長 | 445 bytes |
| コンパイル時間 | 942 ms |
| コンパイル使用メモリ | 111,860 KB |
| 実行使用メモリ | 25,824 KB |
| 最終ジャッジ日時 | 2024-11-18 22:54:54 |
| 合計ジャッジ時間 | 4,400 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using static System.Console;
using static System.Math;
using System.Linq;
public class Hello{
public static void Main(){
int a = int.Parse(ReadLine());
if(a==0){
WriteLine(0);
}else{
Write("0.");
string b = "142857";
for(int i=0;i<a;i++){
int c = i%6;
Write(b[c]);
}
WriteLine();
}
}
}
clocklr