結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 👑 yumechiyumechi
提出日時 2017-03-26 15:22:41
言語 PHP
(8.3.4)
結果
AC  
実行時間 1,158 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 4,898 ms
コンパイル使用メモリ 32,192 KB
実行使用メモリ 32,600 KB
最終ジャッジ日時 2023-10-21 23:37:44
合計ジャッジ時間 8,690 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
32,600 KB
testcase_01 AC 75 ms
32,600 KB
testcase_02 AC 65 ms
32,600 KB
testcase_03 AC 115 ms
32,600 KB
testcase_04 AC 39 ms
32,600 KB
testcase_05 AC 38 ms
32,600 KB
testcase_06 AC 38 ms
32,600 KB
testcase_07 AC 40 ms
32,600 KB
testcase_08 AC 42 ms
32,600 KB
testcase_09 AC 92 ms
32,600 KB
testcase_10 AC 1,158 ms
32,600 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
	$n = trim(fgets(STDIN));
	for($i = 1; $i < $n/3+1; $i++) {
		for($j = $i; $j < $n*2/3; $j++) {
			if($j > $n - $i - $j) {
				break;
			}
			echo $i." ".$j." ".($n - $i - $j)."\n";
		}
	}
0