結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
![]() |
提出日時 | 2017-06-02 23:03:22 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 530 bytes |
コンパイル時間 | 1,788 ms |
コンパイル使用メモリ | 103,168 KB |
実行使用メモリ | 150,528 KB |
最終ジャッジ日時 | 2024-09-22 02:48:01 |
合計ジャッジ時間 | 11,001 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 TLE * 1 OLE * 2 -- * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Text; using System.Collections.Generic; public class Solution { public static void Main() { var n = int.Parse(Console.ReadLine()); var str = new StringBuilder(); for (int a = 1; a * 3 <= n; a++) { for (int b = a; a + b + b <= n; b++) { for (int c = b; a + b + c <= n; c++) { str.Append($"{a} {b} {c}"); } } } Console.WriteLine(str); } }