結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | pirorirori_n712 |
提出日時 | 2018-05-10 00:44:47 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 521 bytes |
コンパイル時間 | 3,088 ms |
コンパイル使用メモリ | 99,556 KB |
実行使用メモリ | 22,696 KB |
最終ジャッジ日時 | 2023-09-10 11:33:10 |
合計ジャッジ時間 | 3,064 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
22,636 KB |
testcase_01 | AC | 53 ms
20,652 KB |
testcase_02 | AC | 55 ms
20,712 KB |
testcase_03 | AC | 55 ms
18,580 KB |
testcase_04 | AC | 54 ms
22,696 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class No661{ static void Main(string[] args){ var num=Int32.Parse(Console.ReadLine()); while(num>0){ var weight=Int32.Parse(Console.ReadLine()); if(weight%20==0){ Console.WriteLine("ikisugi"); } else if(weight%10==0){ Console.WriteLine("sugi"); } else if(weight%8==0){ Console.WriteLine("iki"); } else{ Console.WriteLine(weight/3); } num--; } } }