This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <cstdio> | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
ios_base::sync_with_stdio(0); | |
string s; | |
int n; | |
cin>>n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <cstring> | |
#include <sstream> | |
using namespace std; | |
int arr[40]; | |
int dp[40][5000]; | |
int main() | |
{ | |
ios_base::sync_with_stdio(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
char mx[200][200]; | |
int main() | |
{ | |
ios_base::sync_with_stdio(0); | |
int n, m, t = 1; | |
while(cin >> n >> m && n != 0 && m != 0) { | |
for(int i = 0; i < n; ++i) | |
for(int j = 0; j < m; ++j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <cstring> | |
using namespace std; | |
typedef long long LL; | |
LL dp[200][200]; | |
string s; | |
LL f(LL i, LL j) | |
{ | |
if(i > j || i < 0 || j >= s.size()) return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ce1002.a1.s102502042; | |
import java.util.Scanner; | |
public class A1 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); //create a scanner | |
System.out.print("Please input a number (5~30): "); | |
int number = input.nextInt(); |