intさわだんのBlack History

刹那的レジェンドになりたい。

PCK予選

AOJ 0178 テトリス

reading-hard & 実装に工夫が必要 #include <iostream> #include <algorithm> #include <vector> #include <set> using namespace std; int n; int h[7]; bool m[6010][7]; int b[1010][5]; int main() { while (true) { cin >> n; if (n == 0) break; for (int i = 0; i < 5500; i++) { for (</set></vector></algorithm></iostream>…

AOJ0596&AOJ0258

とりあえず二問。AOJ0595非常に汚い #include <cstdio> using namespace std; int main(){ int n; char s[1003]; int dp[1003][8] = {0}; scanf("%d",&n); scanf("%s",&s); if(s[0] == 'J'){ dp[1][0] = 1; dp[1][3] = 1; dp[1][5] = 1; dp[1][6] = 1; }else if(s[0]</cstdio>…

pck(aoj) のやるだけ問題集

AOJ0173やるだけ #include <cstdio> #include <iostream> using namespace std; int main(){ char s[17]; int a,b; for (int i = 0;i < 9;i++){ cin >> s >> a >> b; cout << s << " "; cout << a + b << " "; cout << a * 200 + b * 300 << endl; } return 0; } AOJ0174yaruda</iostream></cstdio>…

PCK(パソコン甲子園) 2010 予選 (一部

なんかJOI前に簡単な問題解いて調子をあげるため、やるだけ問題をやっていた。

PCK(パソコン甲子園) 2011 予選

暇つぶし。JOI予選も近いんで、簡単な問題とかもやってみよう。※ソースきたないです。時間ないんで途中まで。