結果
問題 | No.1291 小手調べ |
ユーザー |
![]() |
提出日時 | 2021-12-26 21:28:01 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 1,727 ms |
コンパイル使用メモリ | 204,988 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 13:56:30 |
合計ジャッジ時間 | 2,209 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
import std;void main() {int N;readf("%d\n", N);string[] cnts = new string[](101);cnts[1] = "10", cnts[2] = "90";foreach (i; 3 .. 101) {cnts[i] = cnts[i-1] ~ "0";}foreach (_; 0 .. N) {int d;readf("%d\n", d);cnts[d].writeln;}}