結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
clocklr
|
| 提出日時 | 2018-10-19 23:42:10 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 1,014 bytes |
| コンパイル時間 | 2,886 ms |
| コンパイル使用メモリ | 107,296 KB |
| 実行使用メモリ | 26,092 KB |
| 最終ジャッジ日時 | 2024-11-18 22:50:10 |
| 合計ジャッジ時間 | 3,318 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
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);
}
}
}
clocklr