結果
問題 | No.249 N言っちゃダメゲーム (2) |
ユーザー |
![]() |
提出日時 | 2018-10-18 19:04:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 1,467 bytes |
コンパイル時間 | 938 ms |
コンパイル使用メモリ | 111,460 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-06 22:36:42 |
合計ジャッジ時間 | 1,394 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 |
コンパイルメッセージ
main.cpp: In function ‘ll gcd(ll, ll)’: main.cpp:62:12: warning: control reaches end of non-void function [-Wreturn-type] 62 | gcd(b,d); | ~~~^~~~~
ソースコード
#define _USE_MATH_DEFINES#include <iostream>#include <fstream>#include <cstdio>#include <cmath>#include <cstdlib>#include <cstring>#include <cassert>#include <string>#include <vector>#include <utility>#include <complex>#include <set>#include <map>#include <queue>#include <stack>#include <deque>#include <tuple>#include <bitset>#include <limits>#include <algorithm>#include <array>#include <random>#include <complex>#include <regex>using namespace std;typedef long double ld;typedef long long ll;typedef vector<int> vint;typedef vector<ll> vll;typedef pair<int, int> pii;typedef pair<ll, ll> pll;typedef pair<double, double> pdd;#define quickIO() {cin.tie(0); cout.sync_with_stdio(false);}#define rep(i,n) for(ll i=0; i<(ll)n; i++)#define mp(a,b) make_pair(a,b)#define pb push_back#define fcout cout << fixed << setprecision(10)const ll inf = 1e18;const ll mod = 1e9 +7;ld sqrtld(ld x){ld left = 0, right = x;rep(i, 100){ld mid = (left + right)/2;if (mid*mid <= x) left =mid;else right = mid;}return left;}ll gcd(ll a, ll b){if(b>a){ll c =b; b=a; a=c;}ll d = a%b;if(d==0){return b;}else if(d==1){return 1;}else{gcd(b,d);}}int n[1010];int k[1010];int main (){cout << 500 << endl;return 0;}