Skip to content

Instantly share code, notes, and snippets.

View asi1024's full-sized avatar

Akifumi Imanishi asi1024

  • Preferred Networks Inc.
  • Tokyo, Japan
View GitHub Profile
int main() {
double r;
int n;
while (cin >> r >> n, r) {
vector<double> h(60, 0.0);
auto height = h.begin() + 30;
REP(i,n) {
int xl, xr;
double y;
cin >> xl >> xr >> y;
int main() {
int n, m;
while (cin >> n >> m, n) {
vector<C> circle(n);
vector<P> point(m);
ld x, y, r;
REP(i,n) {
cin >> x >> y >> r;
circle[i] = (C){P(x, y), r};
}
int f(int a, int b) {
return a * (100+b) / 100;
}
int main() {
int x, y, s;
while (cin >> x >> y >> s, x) {
int res = -1;
REP(i,1024) REP(j,1024) {
if (i == 0 || j == 0) continue;
string f(string s) {
for (char c = 'b'; c <= 'z'; c++) {
REP(i,s.size()) {
if (s[i] == c) {
s[i]--;
break;
}
}
}
return s;
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <map>
#include <queue>
#include <algorithm>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <map>
#include <queue>
#include <algorithm>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <set>
#include <map>
#include <queue>
#include <algorithm>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <map>
#include <queue>
#include <algorithm>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <map>
#include <cmath>
#include <queue>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <map>
#include <queue>
#include <algorithm>
#include <iomanip>
#define REP(i,n) for(int i=0;i<(int)(n);i++)