結果

問題 No.544 Delete 7
ユーザー keymoonkeymoon
提出日時 2019-04-29 15:29:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 1,206 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 102,308 KB
実行使用メモリ 22,660 KB
最終ジャッジ日時 2023-08-26 00:21:36
合計ジャッジ時間 7,490 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,484 KB
testcase_01 AC 50 ms
20,444 KB
testcase_02 AC 49 ms
20,464 KB
testcase_03 AC 50 ms
20,584 KB
testcase_04 AC 50 ms
22,608 KB
testcase_05 AC 51 ms
20,548 KB
testcase_06 AC 49 ms
20,616 KB
testcase_07 AC 49 ms
22,576 KB
testcase_08 AC 50 ms
18,536 KB
testcase_09 AC 50 ms
20,544 KB
testcase_10 AC 50 ms
20,476 KB
testcase_11 AC 50 ms
20,548 KB
testcase_12 AC 50 ms
20,536 KB
testcase_13 AC 50 ms
18,484 KB
testcase_14 AC 50 ms
20,588 KB
testcase_15 AC 50 ms
22,572 KB
testcase_16 AC 49 ms
22,612 KB
testcase_17 AC 49 ms
20,492 KB
testcase_18 AC 50 ms
22,560 KB
testcase_19 AC 49 ms
20,508 KB
testcase_20 AC 49 ms
20,456 KB
testcase_21 AC 50 ms
20,396 KB
testcase_22 AC 50 ms
20,576 KB
testcase_23 AC 50 ms
22,620 KB
testcase_24 AC 50 ms
20,612 KB
testcase_25 AC 48 ms
18,488 KB
testcase_26 AC 50 ms
22,476 KB
testcase_27 AC 49 ms
20,620 KB
testcase_28 AC 51 ms
22,660 KB
testcase_29 AC 50 ms
20,444 KB
testcase_30 AC 51 ms
22,496 KB
testcase_31 AC 51 ms
20,592 KB
testcase_32 AC 50 ms
20,440 KB
testcase_33 AC 51 ms
20,604 KB
testcase_34 AC 50 ms
22,576 KB
testcase_35 AC 50 ms
20,612 KB
testcase_36 AC 49 ms
20,528 KB
testcase_37 AC 51 ms
20,376 KB
testcase_38 AC 50 ms
20,472 KB
testcase_39 AC 51 ms
22,568 KB
testcase_40 AC 51 ms
22,520 KB
testcase_41 AC 50 ms
20,620 KB
testcase_42 AC 49 ms
22,476 KB
testcase_43 AC 49 ms
20,468 KB
testcase_44 AC 49 ms
20,616 KB
testcase_45 AC 50 ms
20,520 KB
testcase_46 AC 49 ms
22,592 KB
testcase_47 AC 49 ms
20,564 KB
testcase_48 AC 49 ms
20,528 KB
testcase_49 AC 49 ms
20,392 KB
testcase_50 AC 50 ms
20,452 KB
testcase_51 AC 50 ms
22,480 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using LayoutKind = System.Runtime.InteropServices.LayoutKind;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
using StructLayoutAttribute = System.Runtime.InteropServices.StructLayoutAttribute;
using FieldOffsetAttribute = System.Runtime.InteropServices.FieldOffsetAttribute;


static class P
{
    static void Main()
    {
        string a = "";
        string b = "";
        foreach (var c in Console.ReadLine())
        {
            char ac, bc;
            if (c == '7')
            {
                ac = '6';
                bc = '1';
            }
            else
            {
                ac = c;
                bc = '0';
            }
            a += ac;
            b += bc;
        }
        a = a.TrimStart('0');
        b = b.TrimStart('0');
        Console.WriteLine($"{a} {b}");
    }
}
0