結果
| 問題 |
No.415 ぴょん
|
| ユーザー |
ei1333333
|
| 提出日時 | 2016-07-07 21:55:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 205 bytes |
| コンパイル時間 | 1,215 ms |
| コンパイル使用メモリ | 158,740 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 23:22:26 |
| 合計ジャッジ時間 | 5,135 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 TLE * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int n,d;
int a,b;
int ans;
int main(){
cin>>n>>d;
a=n;
b=d;
while(a!=b){
if(a>b)a-=b;
else b-=a;
}
int ans=(n/a)-1;
cout<<ans<<endl;
}
ei1333333