結果

問題 No.849 yuki国の分割統治
ユーザー chocorusk
提出日時 2019-01-18 16:51:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 603 bytes
コンパイル時間 689 ms
コンパイル使用メモリ 95,576 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-06 20:43:00
合計ジャッジ時間 6,880 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other WA * 9 OLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
ll gcd(ll a, ll b){
	if(b==0) return a;
	return gcd(b, a%b);
}
int main()
{
	ll a, b, c, d;
	cin>>a>>b>>c>>d;
	ll x=abs(a*d-b*c);
	cout<<x<<endl;
	for(int i=0; i<x; i++){
		cout<<i<<" "<<0<<endl;
	}
	return 0;
}
0