Submission #144523


Source Code Expand

Copy
#include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>
 
#define mp       make_pair
#define pb       push_back
#define all(x)   (x).begin(),(x).end()
#define rep(i,n) for(int i=0;i<(n);i++)
 
using namespace std;
 
typedef    long long          ll;
typedef    unsigned long long ull;
typedef    vector<bool>       vb;
typedef    vector<int>        vi;
typedef    vector<vb>         vvb;
typedef    vector<vi>         vvi;
typedef    pair<int,int>      pii;
 
const double EPS=1e-9;
 
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main(){
	cout << 150 << endl;
	rep(i,150){
		int mas = 0;
		int sub = 0;
		rep(j,150){
			if(j<i){
				cout << ".";
			}else if(mas == sub){
				mas++;
				sub = 0;
				cout << "O";
			}else{
				cout << ".";
				sub++;
			}
		}
		cout << endl;
	}
}

Submission Info

Submission Time
Task D - ほんとうのたたかい
User igaxx
Language C++ (G++ 4.6.4)
Score 0
Code Size 1093 Byte
Status WA
Exec Time 21 ms
Memory 800 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 1
Set Name Test Cases
All test.txt
Case Name Status Exec Time Memory
test.txt WA 21 ms 800 KB