結果
| 問題 | No.1992 Tendon Walk |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-17 11:04:08 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 298 bytes |
| 記録 | |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 37,696 KB |
| 最終ジャッジ日時 | 2026-02-22 13:15:45 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 6 |
ソースコード
#include <stdio.h>
void main(void){
int numList[] = {2,2,-1,-1,2,-1,-1};
int x;
scanf("%d",&x);
int i = 0 , ans = 0 , count = 0;
while(ans != x){
ans += numList[i];
if(numList[i] == -1){
count++;
}else{
count += 2;
}
i++;
if(i == 7){
i = 0;
}
}
printf("%d",count);
}
Maeda