結果
| 問題 |
No.661 ハローキティはりんご3個分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-09 10:06:07 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 2,000 ms |
| コード長 | 970 bytes |
| コンパイル時間 | 824 ms |
| コンパイル使用メモリ | 102,784 KB |
| 実行使用メモリ | 17,920 KB |
| 最終ジャッジ日時 | 2024-09-21 05:27:37 |
| 合計ジャッジ時間 | 1,598 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
int a = int.Parse(Console.ReadLine());
int[] c = new int[a];
int ans = 0;
for(int i = 0; i < a ; i++)
{
int b = int.Parse(Console.ReadLine());
c[i] = b;
}
for(int j = 0; j < a ; j++)
{
if (c[j] % 8 == 0 && c[j] % 10 == 0)
{
Console.WriteLine("ikisugi");
}else if(c[j] % 8 == 0)
{
Console.WriteLine("iki");
}else if(c[j] % 10 == 0)
{
Console.WriteLine("sugi");
}else if (c[j] % 3 == 0)
{
ans = c[j] / 3;
Console.WriteLine(ans);
}
}
}
}
}