結果
問題 | No.1550 nullくんの町清掃 / null's Town Cleaning |
ユーザー | TAKA 00 |
提出日時 | 2021-07-19 23:39:46 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 2,613 bytes |
コンパイル時間 | 13,595 ms |
コンパイル使用メモリ | 146,404 KB |
実行使用メモリ | 163,628 KB |
最終ジャッジ日時 | 2023-09-24 12:42:34 |
合計ジャッジ時間 | 7,877 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 44 ms
27,880 KB |
testcase_01 | AC | 45 ms
27,892 KB |
testcase_02 | AC | 45 ms
30,184 KB |
testcase_03 | AC | 45 ms
29,944 KB |
testcase_04 | AC | 46 ms
29,996 KB |
testcase_05 | AC | 44 ms
27,936 KB |
testcase_06 | AC | 45 ms
28,012 KB |
testcase_07 | AC | 45 ms
30,024 KB |
testcase_08 | AC | 46 ms
163,628 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 121 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; using System.Linq; namespace ABC209_C3 { class Program { static void Main(string[] args) { cin = new input(); mod = new mod(); var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Console.WriteLine(cin.longreed()% 1000000007); Console.Out.Flush(); } static input cin; static mod mod; } class input { string[] soloinput; int t; public input() { soloinput = new string[0]; t = 0; } public string soloreed() { if (t < soloinput.Length) { return soloinput[t++]; } string input = Console.ReadLine(); while (input == "") { input = Console.ReadLine(); } soloinput = input.Split(" "); t = 0; return soloinput[t++]; } public int intreed() { return int.Parse(soloreed()); } public int[] arrayint(int N) { int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = intreed(); } return A; } public long longreed() { return long.Parse(soloreed()); } public long[] arraylong(long N) { long[] A = new long[N]; for (long i = 0; i < N; i++) { A[i] = longreed(); } return A; } public decimal decimalreed() { return decimal.Parse(soloreed()); } public decimal[] arraydecimal(long N) { decimal[] A = new decimal[N]; for (decimal i = 0; i < N; i++) { A[(long)i] = decimalreed(); } return A; } } class mod { long T; public mod(long mod = 1000000007) { T = mod; } public long addition(long A, long B) { decimal C = A + B; return (long)C % T; } public long subtraction(long A, long B) { decimal C = A - B; //return (long)Math.Abs(C % A); return C % T >= 0 ? (long)C % T : (long)(C + T) % T; } public long multiplication(long A, long B) { return ((A % T) * (B % T)) % T; } } }