結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2023-08-30 13:31:33 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 1,000 ms |
コード長 | 681 bytes |
コンパイル時間 | 915 ms |
コンパイル使用メモリ | 112,932 KB |
実行使用メモリ | 26,512 KB |
最終ジャッジ日時 | 2025-01-02 03:34:23 |
合計ジャッジ時間 | 4,038 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.Collections.Generic; using System.Linq; using System.Numerics; namespace yukicoder { public class Program { public static void Main() { var n = Console.ReadLine(); var a = ""; var b = ""; for(var i = 0; i < n.Length; i++) { if (n[i] == '7') { a += '1'; b += '6'; } else { a += n[i]; b += '0'; } } Console.WriteLine(int.Parse(a) + " " + int.Parse(b)); } } }