結果
問題 | No.481 1から10 |
ユーザー | bayashiko_r |
提出日時 | 2018-11-02 01:05:21 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 404 bytes |
コンパイル時間 | 4,067 ms |
コンパイル使用メモリ | 106,116 KB |
実行使用メモリ | 23,780 KB |
最終ジャッジ日時 | 2024-11-20 10:38:35 |
合計ジャッジ時間 | 4,589 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; class Program { static void Main(string[] args) { //入力 string s = Console.ReadLine(); string[] t = s.Split(' '); //数字の割り当て int[] num = new int[9]; int sum = 0; for (int i = 0; i < 9; i++) { num[i] = int.Parse(t[i]); sum += num[i]; } Console.WriteLine(55 - sum); } }