提出番号 | 2146 |
---|---|

提出者 | ats5515 |

言語 | C++ |

提出日時 | 2018-08-04 20:53:35 |

問題名 | (65)Small Grid and Score |

結果 | RE |

点数 | 0% |

テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
---|---|---|---|---|

1 | WA | 0% | 2ms | 7840KB |

2 | WA | 0% | 2ms | 8432KB |

3 | WA | 0% | 2ms | 8096KB |

4 | WA | 0% | 1ms | 8704KB |

5 | WA | 0% | 2ms | 7648KB |

6 | WA | 0% | 2ms | 7616KB |

7 | WA | 0% | 1ms | 8352KB |

8 | WA | 0% | 2ms | 8080KB |

9 | WA | 0% | 2ms | 8448KB |

10 | WA | 0% | 2ms | 8384KB |

11 | WA | 0% | 2ms | 7248KB |

12 | WA | 0% | 2ms | 8016KB |

13 | WA | 0% | 2ms | 8272KB |

14 | WA | 0% | 2ms | 8384KB |

15 | AC | 92% | 2ms | 7792KB |

16 | WA | 0% | 2ms | 8128KB |

17 | WA | 0% | 2ms | 7552KB |

18 | WA | 0% | 2ms | 8416KB |

19 | WA | 0% | 2ms | 8016KB |

20 | WA | 0% | 2ms | 8432KB |

21 | WA | 0% | 1ms | 7888KB |

22 | WA | 0% | 2ms | 8416KB |

23 | WA | 0% | 2ms | 7936KB |

24 | WA | 0% | 2ms | 8416KB |

テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
---|---|---|---|---|

25 | WA | 0% | 2ms | 7872KB |

26 | WA | 0% | 1ms | 7520KB |

27 | WA | 0% | 1ms | 8720KB |

28 | WA | 0% | 2ms | 8192KB |

29 | WA | 0% | 2ms | 8016KB |

30 | WA | 0% | 2ms | 8064KB |

31 | WA | 0% | 2ms | 8432KB |

32 | WA | 0% | 2ms | 8128KB |

33 | WA | 0% | 2ms | 8432KB |

34 | WA | 0% | 2ms | 8144KB |

35 | WA | 0% | 2ms | 7792KB |

36 | WA | 0% | 2ms | 8432KB |

37 | WA | 0% | 2ms | 8480KB |

38 | WA | 0% | 2ms | 8432KB |

39 | WA | 0% | 2ms | 8400KB |

40 | WA | 0% | 1ms | 8064KB |

41 | WA | 0% | 2ms | 8304KB |

42 | WA | 0% | 2ms | 7536KB |

43 | WA | 0% | 2ms | 7792KB |

44 | WA | 0% | 2ms | 8208KB |

45 | WA | 0% | 2ms | 8016KB |

46 | WA | 0% | 2ms | 8720KB |

47 | WA | 0% | 2ms | 7824KB |

48 | WA | 0% | 2ms | 8064KB |

49 | WA | 0% | 2ms | 7232KB |

50 | WA | 0% | 2ms | 7968KB |

51 | WA | 0% | 2ms | 8448KB |

52 | WA | 0% | 2ms | 7200KB |

53 | WA | 0% | 1ms | 7904KB |

54 | WA | 0% | 2ms | 8032KB |

55 | WA | 0% | 2ms | 8432KB |

56 | WA | 0% | 2ms | 7824KB |

57 | WA | 0% | 2ms | 7856KB |

58 | WA | 0% | 2ms | 8480KB |

59 | WA | 0% | 1ms | 8272KB |

60 | WA | 0% | 1ms | 7520KB |

61 | WA | 0% | 2ms | 8016KB |

62 | WA | 0% | 2ms | 8688KB |

63 | WA | 0% | 2ms | 7552KB |

64 | WA | 0% | 2ms | 8416KB |

65 | WA | 0% | 2ms | 8688KB |

66 | WA | 0% | 2ms | 8384KB |

67 | WA | 0% | 2ms | 8112KB |

68 | WA | 0% | 2ms | 8256KB |

69 | WA | 0% | 2ms | 8352KB |

70 | WA | 0% | 2ms | 7552KB |

71 | WA | 0% | 2ms | 7488KB |

72 | WA | 0% | 2ms | 7600KB |

73 | WA | 0% | 2ms | 8432KB |

74 | WA | 0% | 2ms | 8016KB |

75 | WA | 0% | 2ms | 8016KB |

76 | WA | 0% | 2ms | 7984KB |

77 | WA | 0% | 2ms | 8400KB |

78 | WA | 0% | 2ms | 8000KB |

79 | WA | 0% | 2ms | 8336KB |

80 | WA | 0% | 2ms | 8432KB |

81 | WA | 0% | 2ms | 8432KB |

82 | WA | 0% | 1ms | 8400KB |

83 | WA | 0% | 2ms | 8144KB |

84 | WA | 0% | 2ms | 7792KB |

85 | WA | 0% | 2ms | 8672KB |

86 | WA | 0% | 1ms | 8160KB |

87 | WA | 0% | 2ms | 8432KB |

88 | WA | 0% | 2ms | 8176KB |

89 | WA | 0% | 2ms | 8064KB |

90 | WA | 0% | 2ms | 8432KB |

91 | WA | 0% | 2ms | 7808KB |

92 | WA | 0% | 2ms | 8448KB |

93 | WA | 0% | 2ms | 8416KB |

94 | WA | 0% | 2ms | 7584KB |

95 | WA | 0% | 2ms | 7536KB |

96 | WA | 0% | 1ms | 8064KB |

97 | WA | 0% | 2ms | 8368KB |

98 | WA | 0% | 2ms | 7648KB |

99 | WA | 0% | 2ms | 8400KB |

100 | WA | 0% | 2ms | 8000KB |

101 | WA | 0% | 2ms | 8432KB |

102 | WA | 0% | 2ms | 8336KB |

103 | WA | 0% | 2ms | 8432KB |

104 | WA | 0% | 2ms | 7952KB |

105 | WA | 0% | 2ms | 7488KB |

106 | WA | 0% | 2ms | 8384KB |

107 | WA | 0% | 2ms | 8064KB |

108 | WA | 0% | 2ms | 8640KB |

109 | WA | 0% | 2ms | 8448KB |

110 | WA | 0% | 2ms | 8176KB |

111 | WA | 0% | 2ms | 7792KB |

112 | WA | 0% | 2ms | 8144KB |

113 | WA | 0% | 1ms | 8704KB |

114 | WA | 0% | 2ms | 8416KB |

115 | WA | 0% | 2ms | 8416KB |

116 | WA | 0% | 2ms | 8032KB |

117 | WA | 0% | 2ms | 8384KB |

118 | WA | 0% | 2ms | 8368KB |

119 | WA | 0% | 2ms | 7248KB |

120 | WA | 0% | 2ms | 8016KB |

121 | WA | 0% | 2ms | 8080KB |

122 | WA | 0% | 2ms | 8144KB |

123 | WA | 0% | 2ms | 8432KB |

124 | WA | 0% | 1ms | 8112KB |

```
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
int MOD = 1000000007;
signed main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N;
cin >> N;
int NN = N;
vector<int> X;
while (N > 1) {
if (N % 2 == 1) {
X.push_back(1);
N--;
}
else {
X.push_back(2);
N /= 2;
}
}
//cerr << "ok" << endl;
reverse(X.begin(), X.end());
int K = ((int)X.size() / 2) + 2;
vector<string> res(K);
for (int i = 0; i < K; i++) {
res[i].resize(K, ',');
}
if (NN == 0) {
cout << "1 1" << endl;
cout << "#" << endl;
}
else {
for (int i = 0; i < X.size(); i++) {
//cerr << X[i] << endl;
if (i < K) {
res[i][0] = X[i] + '0';
}
else {
res[K - 1][i - (K) + 1] = X[i] + '0';
}
}
for (int i = 0; i < K - 1; i++) {
for (int j = 1; j < K; j++) {
res[i][j] = '#';
}
}
cout << K << " " << K << endl;
for (int i = 0; i < K; i++) {
cout << res[i] << endl;
}
}
}
```