結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー |
![]() |
提出日時 | 2022-07-20 20:27:27 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 1,778 ms |
コンパイル使用メモリ | 202,968 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 15:49:57 |
合計ジャッジ時間 | 2,241 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
import std; void main() { int i; readf("%d\n", i); foreach (_; 0 .. i) { int N; readf("%d\n", N); string res; if (N % 8 == 0) res ~= "iki"; if (N % 10 == 0) res ~= "sugi"; if (res.empty) res = to!string(N/3); res.writeln; } }