結果
問題 |
No.1992 Tendon Walk
|
ユーザー |
![]() |
提出日時 | 2022-07-01 21:33:28 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 1,842 ms |
コンパイル使用メモリ | 203,288 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 15:34:33 |
合計ジャッジ時間 | 2,367 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
import std; void main() { int X; readf("%d\n", X); int[] A = [2, 2, -1, -1, 2, -1, -1]; auto L = A.length; int res, pos, idx; while (pos != X) { res += A[idx%L].abs; pos += A[idx%L]; ++idx; } res.writeln; }