結果
問題 | No.745 letinopia raoha |
ユーザー | clocklr |
提出日時 | 2018-10-19 23:42:10 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 1,014 bytes |
コンパイル時間 | 774 ms |
コンパイル使用メモリ | 103,936 KB |
実行使用メモリ | 18,048 KB |
最終ジャッジ日時 | 2024-04-29 17:12:55 |
合計ジャッジ時間 | 1,548 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 22 ms
17,664 KB |
testcase_01 | AC | 22 ms
17,664 KB |
testcase_02 | AC | 23 ms
17,664 KB |
testcase_03 | AC | 24 ms
17,536 KB |
testcase_04 | AC | 22 ms
17,920 KB |
testcase_05 | AC | 22 ms
17,920 KB |
testcase_06 | AC | 22 ms
17,792 KB |
testcase_07 | AC | 23 ms
17,792 KB |
testcase_08 | AC | 22 ms
18,048 KB |
testcase_09 | AC | 23 ms
17,920 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using static System.Console; using static System.Math; using System.Linq; public class Hello{ public static void Main(){ string[] inp = ReadLine().Split(' '); int a = int.Parse(inp[0]); int b = int.Parse(inp[1]); int c = int.Parse(inp[2]); int d = int.Parse(inp[3]); if(d>=10){ WriteLine("Impossible"); }else{ int bairitu = 1; int count = 0; int total = 0; while(b>0){ count++; total += 50*bairitu; b--; if(count % 100 ==0){ bairitu*=2; } } while(a>0){ count++; total += 100*bairitu; a--; if(count%100 == 0){ bairitu*=2; } // WriteLine(total); } WriteLine("Possible"); WriteLine(total); } } }