結果
| 問題 |
No.415 ぴょん
|
| コンテスト | |
| ユーザー |
notetonous
|
| 提出日時 | 2017-08-13 22:06:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 229 bytes |
| コンパイル時間 | 429 ms |
| コンパイル使用メモリ | 55,808 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-13 09:16:54 |
| 合計ジャッジ時間 | 2,863 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 1 -- * 23 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
int main(){
int N,D;
cin >> N >> D;
int i=1,ans=0;
while(1){
i+=D;
i%=N;
if(i==1)break;
ans++;
}
cout << ans;
return 0;
}
notetonous