結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
sanntaroh
|
| 提出日時 | 2019-04-26 04:27:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 2,846 ms / 5,000 ms |
| コード長 | 614 bytes |
| コンパイル時間 | 1,061 ms |
| コンパイル使用メモリ | 111,728 KB |
| 実行使用メモリ | 27,256 KB |
| 最終ジャッジ日時 | 2024-11-22 07:16:51 |
| 合計ジャッジ時間 | 11,540 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
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 System.Collections.Generic;
namespace test20190423
{
class Program
{
static void Main(string[] args)
{
var ss = Console.ReadLine().Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries).Select(x => long.Parse(x)).ToArray();
long sum = 0;
for (; ;)
{
ss[0] -= ss[1];
if (ss[0] - ss[1] <= 0) break;
ss[0] -= ss[1];
sum += ss[1];
}
Console.WriteLine(sum);
Console.ReadLine();
}
}
}
sanntaroh