結果
問題 |
No.544 Delete 7
|
ユーザー |
![]() |
提出日時 | 2019-04-29 15:29:14 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 23 ms / 1,000 ms |
コード長 | 1,206 bytes |
コンパイル時間 | 857 ms |
コンパイル使用メモリ | 109,632 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-12-24 12:37:35 |
合計ジャッジ時間 | 3,705 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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}"); } }