結果
問題 | No.544 Delete 7 |
ユーザー | くれちー |
提出日時 | 2017-07-14 00:03:36 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 2,229 bytes |
コンパイル時間 | 3,523 ms |
コンパイル使用メモリ | 116,520 KB |
実行使用メモリ | 28,260 KB |
最終ジャッジ日時 | 2024-10-07 18:35:30 |
合計ジャッジ時間 | 4,634 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
25,776 KB |
testcase_01 | AC | 27 ms
25,836 KB |
testcase_02 | AC | 27 ms
25,700 KB |
testcase_03 | AC | 28 ms
26,096 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 29 ms
26,104 KB |
testcase_07 | AC | 29 ms
25,780 KB |
testcase_08 | AC | 30 ms
25,840 KB |
testcase_09 | AC | 29 ms
25,840 KB |
testcase_10 | AC | 29 ms
28,012 KB |
testcase_11 | AC | 28 ms
25,648 KB |
testcase_12 | AC | 28 ms
26,096 KB |
testcase_13 | AC | 28 ms
28,012 KB |
testcase_14 | AC | 27 ms
28,008 KB |
testcase_15 | AC | 27 ms
28,136 KB |
testcase_16 | AC | 27 ms
27,748 KB |
testcase_17 | AC | 27 ms
27,756 KB |
testcase_18 | AC | 27 ms
27,888 KB |
testcase_19 | AC | 27 ms
25,964 KB |
testcase_20 | AC | 28 ms
27,884 KB |
testcase_21 | AC | 29 ms
28,128 KB |
testcase_22 | AC | 28 ms
25,772 KB |
testcase_23 | AC | 28 ms
25,844 KB |
testcase_24 | AC | 29 ms
25,776 KB |
testcase_25 | AC | 28 ms
23,604 KB |
testcase_26 | AC | 28 ms
26,092 KB |
testcase_27 | AC | 28 ms
25,648 KB |
testcase_28 | AC | 29 ms
23,856 KB |
testcase_29 | AC | 29 ms
25,908 KB |
testcase_30 | AC | 28 ms
25,776 KB |
testcase_31 | AC | 28 ms
25,964 KB |
testcase_32 | AC | 28 ms
25,984 KB |
testcase_33 | AC | 27 ms
26,036 KB |
testcase_34 | AC | 27 ms
25,832 KB |
testcase_35 | AC | 28 ms
25,712 KB |
testcase_36 | AC | 27 ms
26,096 KB |
testcase_37 | AC | 29 ms
27,888 KB |
testcase_38 | AC | 28 ms
23,860 KB |
testcase_39 | WA | - |
testcase_40 | AC | 29 ms
27,764 KB |
testcase_41 | AC | 28 ms
23,860 KB |
testcase_42 | AC | 28 ms
25,964 KB |
testcase_43 | AC | 28 ms
25,960 KB |
testcase_44 | AC | 28 ms
27,888 KB |
testcase_45 | WA | - |
testcase_46 | AC | 28 ms
28,016 KB |
testcase_47 | AC | 27 ms
25,832 KB |
testcase_48 | AC | 27 ms
23,860 KB |
testcase_49 | AC | 27 ms
25,584 KB |
testcase_50 | AC | 29 ms
27,888 KB |
testcase_51 | AC | 27 ms
25,908 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
#pragma warning disable IDE1006 #pragma warning disable IDE0011 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using static System.Convert; using static System.Math; using static Extentions; class IO { int idx; string[] line; public void R(params char[] sep) { line = Console.ReadLine().Split(sep); idx = 0; } public string S => line[idx++]; public string[] Ss => line.Skip(idx++).ToArray(); public char C => char.Parse(line[idx++]); public char[] Cs => line.Skip(idx++).Select(char.Parse).ToArray(); public int I => int.Parse(line[idx++]); public int[] Is => line.Skip(idx++).Select(int.Parse).ToArray(); public long L => long.Parse(line[idx++]); public long[] Ls => line.Skip(idx++).Select(long.Parse).ToArray(); public double F => double.Parse(line[idx++]); public double[] Fs => line.Skip(idx++).Select(double.Parse).ToArray(); public decimal D => decimal.Parse(line[idx++]); public decimal[] Ds => line.Skip(idx++).Select(decimal.Parse).ToArray(); public BigInteger B => BigInteger.Parse(line[idx++]); public BigInteger[] Bs => line.Skip(idx++).Select(BigInteger.Parse).ToArray(); public void Write<T>(params T[] xs) { Console.Write(xs.First()); foreach (var x in xs.Skip(1)) Console.Write(" " + x); Console.WriteLine(); } public void Write(params object[] xs) { Console.Write(xs.First()); foreach (var x in xs.Skip(1)) Console.Write(" " + x); Console.WriteLine(); } } static class Extentions { } static class Program { public static void Main() { #if !DEBUG Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); #endif Solve(new IO()); Console.Out.Flush(); } public static void Solve(IO io) { io.R(); var n = io.I; var rand = new Random(); int a, b; do { a = rand.Next(n * 2); b = n - a; } while (a.Contains7() || b.Contains7()); io.Write(a, b); } static bool Contains7(this int x) => x.ToString().Contains('7'); }