Please sign in first.
Submission #474445
Source Code Expand
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace program1
{
class Program
{
public int shokin(int n)
{
if (n == 0)
return 100;
if (n == 1)
return 100;
if (n == 2)
return 200;
return shokin(n - 1) + shokin(n - 2) + shokin(n - 3);
}
static void Main(string[] args)
{
Program P = new Program();
Console.WriteLine(P.shokin(19));
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 天下一プログラマーコンテスト1998 |
| User | megu |
| Language | C# (Mono 3.2.1.0) |
| Score | 10 |
| Code Size | 634 Byte |
| Status | AC |
| Exec Time | 105 ms |
| Memory | 8756 KiB |
Judge Result
| Set Name | All | ||
|---|---|---|---|
| Score / Max Score | 10 / 10 | ||
| Status |
|
| Set Name | Test Cases |
|---|---|
| All | no_input.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| no_input.txt | AC | 105 ms | 8756 KiB |