結果
| 問題 |
No.169 何分かかるの!?
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-15 10:43:17 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 627 bytes |
| コンパイル時間 | 3,217 ms |
| コンパイル使用メモリ | 111,388 KB |
| 実行使用メモリ | 28,940 KB |
| 最終ジャッジ日時 | 2024-10-03 20:27:57 |
| 合計ジャッジ時間 | 5,015 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 1 WA * 21 |
コンパイルメッセージ
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)
{
//K%コピー完了
float K = int.Parse(Console.ReadLine());
//何分掛かるか
float S = int.Parse(Console.ReadLine());
float a = 0;
float b = 0;
//小数点以下切り捨て
float c = 0;
a = K / 100;
b = S / a;
if(b%2!=0)
{
//b += 1;
c = b % 2;
b -= c;
}
Console.WriteLine(b);
}
}
}