結果
| 問題 |
No.294 SuperFizzBuzz
|
| ユーザー |
zizi4n5
|
| 提出日時 | 2017-07-02 09:47:13 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 570 bytes |
| コンパイル時間 | 1,032 ms |
| コンパイル使用メモリ | 108,604 KB |
| 実行使用メモリ | 42,736 KB |
| 最終ジャッジ日時 | 2024-10-05 07:13:24 |
| 合計ジャッジ時間 | 7,261 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 TLE * 1 -- * 1 |
| other | -- * 12 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Text.RegularExpressions;
namespace yukicoder_no294
{
class MainClass
{
public static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());
int c = 0;
for (int i = 1; true; i++)
{
int FizzBuzz = i * 15;
if (Regex.IsMatch(FizzBuzz.ToString(), @"^[35]+$"))
{
if (++c == N)
{
Console.WriteLine("{0}", FizzBuzz);
return;
}
}
}
}
}
}
zizi4n5