結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | iwkjosec |
提出日時 | 2018-03-09 22:40:38 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 495 bytes |
コンパイル時間 | 4,881 ms |
コンパイル使用メモリ | 110,416 KB |
実行使用メモリ | 25,588 KB |
最終ジャッジ日時 | 2024-04-18 13:35:37 |
合計ジャッジ時間 | 5,221 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 23 ms
25,588 KB |
testcase_01 | AC | 23 ms
23,732 KB |
testcase_02 | AC | 22 ms
23,884 KB |
testcase_03 | AC | 21 ms
23,748 KB |
testcase_04 | AC | 22 ms
21,556 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var I = int.Parse(ReadLine()); var v = new int[I]; for (int i = 0; i < I; i++) { v[i] = int.Parse(ReadLine()); } for (int i = 0; i < I; i++) { WriteLine(v[i] % 40 == 0 ? "ikisugi" : v[i] % 8 == 0 ? "iki" : v[i] % 10 == 0 ? "sugi" : (v[i] / 3).ToString()); } } }