結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | saran1591 |
提出日時 | 2018-06-27 12:38:26 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 592 bytes |
コンパイル時間 | 3,236 ms |
コンパイル使用メモリ | 100,868 KB |
実行使用メモリ | 24,724 KB |
最終ジャッジ日時 | 2023-09-13 14:27:15 |
合計ジャッジ時間 | 3,092 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
20,596 KB |
testcase_01 | AC | 54 ms
20,620 KB |
testcase_02 | AC | 55 ms
20,668 KB |
testcase_03 | AC | 55 ms
24,724 KB |
testcase_04 | AC | 55 ms
20,604 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.Linq; using static System.Console; namespace App { class Prog { static void Main() { var x = int.Parse(ReadLine()); for (int i = 0; i < x; i++) { var nm = int.Parse(ReadLine()); if (nm % 8 == 0) Write("iki"); if (nm % 10 == 0) Write("sugi"); if (nm % 8 == 0 || nm % 10 == 0) { WriteLine(""); continue; } WriteLine(nm /3); } } } }