結果
問題 |
No.593 4進FizzBuzz
|
ユーザー |
|
提出日時 | 2017-08-03 07:50:37 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 552 bytes |
コンパイル時間 | 977 ms |
コンパイル使用メモリ | 112,208 KB |
実行使用メモリ | 66,404 KB |
最終ジャッジ日時 | 2024-10-14 13:47:23 |
合計ジャッジ時間 | 5,807 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 5 WA * 7 TLE * 1 -- * 18 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Numerics; public class prog{ public static void Main(){ string line = Console.ReadLine(); BigInteger num = BigInteger.Parse(line); bool div5 = (num) % 5 == 0; bool div3 = (num) % 3 == 0; if (div5 && div3){ Console.WriteLine("FizzBuzz"); }else if (div5){ Console.WriteLine("Buzz"); }else if (div3){ Console.WriteLine("Fizz"); }else{ Console.WriteLine(line); } } }