結果

問題 No.3085 Math...?
ユーザー さかぽんさかぽん
提出日時 2021-04-02 10:02:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 2,345 ms
コード長 401 bytes
コンパイル時間 2,190 ms
コンパイル使用メモリ 106,408 KB
実行使用メモリ 23,748 KB
最終ジャッジ日時 2023-08-24 18:10:03
合計ジャッジ時間 5,952 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,644 KB
testcase_01 AC 60 ms
23,504 KB
testcase_02 AC 60 ms
23,748 KB
testcase_03 AC 59 ms
21,588 KB
testcase_04 AC 59 ms
21,608 KB
testcase_05 AC 59 ms
21,428 KB
testcase_06 AC 59 ms
23,656 KB
testcase_07 AC 60 ms
23,652 KB
testcase_08 AC 59 ms
23,528 KB
testcase_09 AC 60 ms
23,668 KB
testcase_10 AC 60 ms
23,544 KB
testcase_11 AC 59 ms
21,600 KB
testcase_12 AC 59 ms
21,608 KB
testcase_13 AC 60 ms
21,536 KB
testcase_14 AC 59 ms
21,476 KB
testcase_15 AC 60 ms
21,568 KB
testcase_16 AC 58 ms
23,668 KB
testcase_17 AC 59 ms
23,592 KB
testcase_18 AC 59 ms
21,532 KB
testcase_19 AC 59 ms
21,424 KB
testcase_20 AC 60 ms
21,424 KB
testcase_21 AC 59 ms
21,532 KB
testcase_22 AC 60 ms
21,592 KB
testcase_23 AC 60 ms
21,500 KB
testcase_24 AC 60 ms
21,548 KB
testcase_25 AC 59 ms
21,612 KB
testcase_26 AC 59 ms
21,484 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class M
{
	static int[] Read() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
	static (int, int) Read2() { var a = Read(); return (a[0], a[1]); }
	static void Main() => Console.WriteLine(string.Join("\n", new int[int.Parse(Console.ReadLine())].Select(_ => Solve())));
	static object Solve()
	{
		var (a, b) = Read2();
		return b * (b + 1) / 2 % 17;
	}
}
0