結果
| 問題 |
No.687 E869120 and Constructing Array 1
|
| ユーザー |
No
|
| 提出日時 | 2018-05-18 22:30:06 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 1,000 ms |
| コード長 | 500 bytes |
| コンパイル時間 | 766 ms |
| コンパイル使用メモリ | 107,892 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-06-28 13:52:26 |
| 合計ジャッジ時間 | 1,553 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace y
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int a1 = n;
int a2 = 0;
while (true)
{
a1--;
a2++;
if (a1 >= 1 && a1 <= 10 && a2 >= 1 && a2 <= 10 )
{
break;
}
}
Console.WriteLine("{0} {1}", a1, a2);
}
}
}
No