結果
問題 |
No.637 X: Yet Another FizzBuzz Problem
|
ユーザー |
![]() |
提出日時 | 2018-05-15 01:33:03 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 338 bytes |
コンパイル時間 | 1,205 ms |
コンパイル使用メモリ | 103,424 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-06-28 12:01:06 |
合計ジャッジ時間 | 2,645 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 4 WA * 26 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class No637{ static void Main(string[] args){ string[] str=Console.ReadLine().Split(' '); var sum=0; for(int i=0;i<5;++i){ int num=Int32.Parse(str[i]); sum+=((num%15)==0)?8:(num%5==0&&num%3==0)?4:(num<10)?1:(num<100)?2:3; } Console.WriteLine(sum); } }