結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | nebukuro09 |
提出日時 | 2017-06-03 12:14:50 |
言語 | D (dmd 2.106.1) |
結果 |
AC
|
実行時間 | 422 ms / 2,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 662 ms |
コンパイル使用メモリ | 100,024 KB |
実行使用メモリ | 4,388 KB |
最終ジャッジ日時 | 2023-09-03 13:56:04 |
合計ジャッジ時間 | 5,191 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 5 ms
4,384 KB |
testcase_01 | AC | 15 ms
4,380 KB |
testcase_02 | AC | 11 ms
4,380 KB |
testcase_03 | AC | 30 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 2 ms
4,388 KB |
testcase_09 | AC | 21 ms
4,376 KB |
testcase_10 | AC | 422 ms
4,376 KB |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { auto N = readln.chomp.to!int; foreach (a; 1..N+1) foreach (b; 1..N+1) { int c = N - a - b; if (a <= b && b <= c && c > 0) writeln(a, " ", b, " ", c); } }