結果
| 問題 | No.682 Average |
| コンテスト | |
| ユーザー |
iwkjosec
|
| 提出日時 | 2018-06-10 12:33:43 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 884 ms |
| コンパイル使用メモリ | 112,288 KB |
| 実行使用メモリ | 29,184 KB |
| 最終ジャッジ日時 | 2024-06-30 13:14:25 |
| 合計ジャッジ時間 | 1,835 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program
{
static void Main()
{
var AB = ReadLine().Split().Select(int.Parse).ToArray();
var a = 0;
for (int i = AB[0]; i <= AB[1]; i++)
{
if (AB.Sum() + i % 3 == 0) a++;
}
WriteLine(a);
}
}
iwkjosec